eqemu

view src/object.h @ 4:3d3656360a82

rendering properly, added picking, almost done...
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Jul 2014 08:51:17 +0300
parents f9274bebe55e
children 2656099aff12
line source
1 #ifndef OBJECT_H_
2 #define OBJECT_H_
4 #include <string>
5 #include "mesh.h"
6 #include "material.h"
8 class Object {
9 private:
10 std::string name;
11 Mesh *mesh;
13 public:
14 Material mtl;
16 Object();
18 void set_name(const char *name);
19 const char *get_name() const;
21 void set_mesh(Mesh *mesh);
22 Mesh *get_mesh() const;
24 void render() const;
25 };
27 #endif // OBJECT_H_