tavli

annotate 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
rev   line source
nuclear@1 1 #ifndef OBJECT_H_
nuclear@1 2 #define OBJECT_H_
nuclear@1 3
nuclear@1 4 #include "mesh.h"
nuclear@3 5 #include "geom.h"
nuclear@1 6
nuclear@1 7 class Object {
nuclear@1 8 private:
nuclear@1 9 Mesh *mesh;
nuclear@1 10 Matrix4x4 matrix;
nuclear@1 11
nuclear@1 12 public:
nuclear@1 13 Object();
nuclear@1 14 ~Object();
nuclear@1 15
nuclear@1 16 Matrix4x4 &xform();
nuclear@1 17 const Matrix4x4 &xform() const;
nuclear@1 18
nuclear@1 19 void set_mesh(Mesh *m);
nuclear@1 20 Mesh *get_mesh() const;
nuclear@1 21
nuclear@1 22 void draw() const;
nuclear@3 23
nuclear@3 24 bool intersect(const Ray &ray, HitPoint *hit) const;
nuclear@1 25 };
nuclear@1 26
nuclear@1 27 #endif // OBJECT_H_