goat3d

view 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 source
1 #include "object.h"
3 Object::Object()
4 {
5 material = 0;
6 mesh = 0;
7 }
9 void Object::set_mesh(Mesh *mesh)
10 {
11 this->mesh = mesh;
12 }
14 Mesh *Object::get_mesh() const
15 {
16 return mesh;
17 }
19 void Object::set_material(Material *mtl)
20 {
21 material = mtl;
22 }
24 Material *Object::get_material() const
25 {
26 return material;
27 }