tavli

view src/object.h @ 1:3fcd7b4d631f

board mesh generation
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Jun 2015 05:05:37 +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_