goat3d
annotate src/object.cc @ 1:e46529a5d057
some progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 17 Aug 2013 23:51:24 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #include "object.h" |
nuclear@0 | 2 |
nuclear@0 | 3 Object::Object() |
nuclear@0 | 4 { |
nuclear@0 | 5 material = 0; |
nuclear@0 | 6 mesh = 0; |
nuclear@0 | 7 } |
nuclear@0 | 8 |
nuclear@0 | 9 void Object::set_mesh(Mesh *mesh) |
nuclear@0 | 10 { |
nuclear@0 | 11 this->mesh = mesh; |
nuclear@0 | 12 } |
nuclear@0 | 13 |
nuclear@0 | 14 Mesh *Object::get_mesh() const |
nuclear@0 | 15 { |
nuclear@0 | 16 return mesh; |
nuclear@0 | 17 } |
nuclear@0 | 18 |
nuclear@0 | 19 void Object::set_material(Material *mtl) |
nuclear@0 | 20 { |
nuclear@0 | 21 material = mtl; |
nuclear@0 | 22 } |
nuclear@0 | 23 |
nuclear@0 | 24 Material *Object::get_material() const |
nuclear@0 | 25 { |
nuclear@0 | 26 return material; |
nuclear@0 | 27 } |