#include "thing.h" #include <GL/gl.h> #include <GL/glu.h> void Thing::draw() { } void Thing::rotate(Vec rot) { } void Thing::setColor(Color* c) { } void Thing::setColor(Color c) { } void Thing::setDelta(float d) { } void Thing::showNormals() { } void Thing::hideNormals() { } void Thing::setPosition(Vec newpos) { } void Thing::setCenter(Vec newcenter) { } void Thing::move(Vec d) { } void Thing::scale(float f) { } void Thing::trace(bool s) { } View::View() { rotation = new Vec(0.0f, 0.0f, 0.0f); } void View::rotate(Vec rot) { rotation->add((Vec)rot); } void View::setPosition(Vec newpos) { /*TODO*/ } void View::setCenter(Vec newcenter) { /*TODO*/ } void View::move(Vec d) { /*TODO*/ } void View::draw() { glRotatef(rotation->x(), 1.0f, 0.0f, 0.0f); glRotatef(rotation->y(), 0.0f, 1.0f, 0.0f); glRotatef(rotation->z(), 0.0f, 0.0f, 1.0f); }