tavli
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/object.h Mon Jun 22 05:05:37 2015 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +#ifndef OBJECT_H_ 1.5 +#define OBJECT_H_ 1.6 + 1.7 +#include "mesh.h" 1.8 + 1.9 +class Object { 1.10 +private: 1.11 + Mesh *mesh; 1.12 + Matrix4x4 matrix; 1.13 + 1.14 +public: 1.15 + Object(); 1.16 + ~Object(); 1.17 + 1.18 + Matrix4x4 &xform(); 1.19 + const Matrix4x4 &xform() const; 1.20 + 1.21 + void set_mesh(Mesh *m); 1.22 + Mesh *get_mesh() const; 1.23 + 1.24 + void draw() const; 1.25 +}; 1.26 + 1.27 +#endif // OBJECT_H_