123456789101112131415161718 |
- #include <GL/glew.h>
- #include <GL/glut.h>
- #include "object.h"
- void Object::draw() {
- /* Draw object with matrix transformation */
- //Local transformation
- glPushMatrix();
- glMultMatrixf(m);
- //Mesh drawing
- Mesh2::draw();
- //Pop matrix
- glPopMatrix();
- }
|