goat3d

diff src/object.cc @ 0:2918358f5e6d

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 17 Aug 2013 16:10:26 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/object.cc	Sat Aug 17 16:10:26 2013 +0300
     1.3 @@ -0,0 +1,27 @@
     1.4 +#include "object.h"
     1.5 +
     1.6 +Object::Object()
     1.7 +{
     1.8 +	material = 0;
     1.9 +	mesh = 0;
    1.10 +}
    1.11 +
    1.12 +void Object::set_mesh(Mesh *mesh)
    1.13 +{
    1.14 +	this->mesh = mesh;
    1.15 +}
    1.16 +
    1.17 +Mesh *Object::get_mesh() const
    1.18 +{
    1.19 +	return mesh;
    1.20 +}
    1.21 +
    1.22 +void Object::set_material(Material *mtl)
    1.23 +{
    1.24 +	material = mtl;
    1.25 +}
    1.26 +
    1.27 +Material *Object::get_material() const
    1.28 +{
    1.29 +	return material;
    1.30 +}