tavli

view src/object.h @ 3:94aff2ff1934

too much?
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Jun 2015 21:46:57 +0300
parents 3fcd7b4d631f
children b41ceead1708
line source
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
4 #include "mesh.h"
5 #include "geom.h"
7 class Object {
8 private:
9 Mesh *mesh;
10 Matrix4x4 matrix;
12 public:
13 Object();
14 ~Object();
16 Matrix4x4 &xform();
17 const Matrix4x4 &xform() const;
19 void set_mesh(Mesh *m);
20 Mesh *get_mesh() const;
22 void draw() const;
24 bool intersect(const Ray &ray, HitPoint *hit) const;
25 };
27 #endif // OBJECT_H_