eqemu

diff src/object.cc @ 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.cc	Thu Jul 17 02:35:19 2014 +0300
     1.2 +++ b/src/object.cc	Thu Jul 17 08:51:17 2014 +0300
     1.3 @@ -5,6 +5,16 @@
     1.4  	mesh = 0;
     1.5  }
     1.6  
     1.7 +void Object::set_name(const char *name)
     1.8 +{
     1.9 +	this->name = std::string(name);
    1.10 +}
    1.11 +
    1.12 +const char *Object::get_name() const
    1.13 +{
    1.14 +	return name.c_str();
    1.15 +}
    1.16 +
    1.17  void Object::set_mesh(Mesh *mesh)
    1.18  {
    1.19  	this->mesh = mesh;