eqemu

diff 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 diff
     1.1 --- a/src/object.h	Thu Jul 17 02:35:19 2014 +0300
     1.2 +++ b/src/object.h	Thu Jul 17 08:51:17 2014 +0300
     1.3 @@ -1,11 +1,13 @@
     1.4  #ifndef OBJECT_H_
     1.5  #define OBJECT_H_
     1.6  
     1.7 +#include <string>
     1.8  #include "mesh.h"
     1.9  #include "material.h"
    1.10  
    1.11  class Object {
    1.12  private:
    1.13 +	std::string name;
    1.14  	Mesh *mesh;
    1.15  
    1.16  public:
    1.17 @@ -13,6 +15,9 @@
    1.18  
    1.19  	Object();
    1.20  
    1.21 +	void set_name(const char *name);
    1.22 +	const char *get_name() const;
    1.23 +
    1.24  	void set_mesh(Mesh *mesh);
    1.25  	Mesh *get_mesh() const;
    1.26