| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //
- // Created by janco on 6/22/16.
- //
- #ifndef OPENGLINDIVIDUEEL_OBJECT_H
- #define OPENGLINDIVIDUEEL_OBJECT_H
- #include <GL/gl.h>
- #include <string>
- #include "Vector.h"
- class Object {
- public:
- void draw();
- void update(float elapsedTime) {};
- void quad(int a,int b,int c,int d);
- Vec3f position;
- Vec3f rotation;
- float scale;
- std::string text;
- float ver[8][3] =
- {
- {-1.0,-1.0,1.0},
- {-1.0,1.0,1.0},
- {1.0,1.0,1.0},
- {1.0,-1.0,1.0},
- {-1.0,-1.0,-1.0},
- {-1.0,1.0,-1.0},
- {1.0,1.0,-1.0},
- {1.0,-1.0,-1.0},
- };
- GLfloat color[8][3] =
- {
- {0.0,0.0,0.0},
- {1.0,0.0,0.0},
- {1.0,1.0,0.0},
- {0.0,1.0,0.0},
- {0.0,0.0,1.0},
- {1.0,0.0,1.0},
- {1.0,1.0,1.0},
- {0.0,1.0,1.0},
- };
- };
- #endif //OPENGLINDIVIDUEEL_OBJECT_H
|