vrheights
diff src/object.h @ 8:3f221bdc9bab
mesh loading
walk polys
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 03 Oct 2014 04:16:16 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/object.h Fri Oct 03 04:16:16 2014 +0300 1.3 @@ -0,0 +1,23 @@ 1.4 +#ifndef OBJECT_H_ 1.5 +#define OBJECT_H_ 1.6 + 1.7 +#include <vmath/vmath.h> 1.8 +#include "mesh.h" 1.9 +#include "material.h" 1.10 + 1.11 +class Object { 1.12 +private: 1.13 + Mesh *mesh; 1.14 + 1.15 +public: 1.16 + Material mtl; 1.17 + Matrix4x4 xform; 1.18 + 1.19 + Object(); 1.20 + 1.21 + void set_mesh(Mesh *m); 1.22 + 1.23 + void draw() const; 1.24 +}; 1.25 + 1.26 +#endif /* OBJECT_H_ */