tavli

view src/object.h @ 2:893192aea099

board keeps objects instead of raw meshes
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Jun 2015 05:15:39 +0300
parents
children 94aff2ff1934
line source
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
4 #include "mesh.h"
6 class Object {
7 private:
8 Mesh *mesh;
9 Matrix4x4 matrix;
11 public:
12 Object();
13 ~Object();
15 Matrix4x4 &xform();
16 const Matrix4x4 &xform() const;
18 void set_mesh(Mesh *m);
19 Mesh *get_mesh() const;
21 void draw() const;
22 };
24 #endif // OBJECT_H_