goat3d
annotate src/mesh.cc @ 13:798df5111b56
moving slowly onwards
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 10 Sep 2013 15:29:45 +0300 |
parents | e46529a5d057 |
children | f1b4c27382ce |
rev | line source |
---|---|
nuclear@1 | 1 #include "mesh.h" |
nuclear@1 | 2 |
nuclear@1 | 3 Mesh::Mesh() |
nuclear@1 | 4 { |
nuclear@8 | 5 material = 0; |
nuclear@1 | 6 } |
nuclear@1 | 7 |
nuclear@8 | 8 Mesh::~Mesh() {} |
nuclear@8 | 9 |
nuclear@8 | 10 void Mesh::set_material(Material *mat) |
nuclear@1 | 11 { |
nuclear@8 | 12 material = mat; |
nuclear@1 | 13 } |
nuclear@1 | 14 |
nuclear@8 | 15 Material *Mesh::get_material() |
nuclear@1 | 16 { |
nuclear@8 | 17 return material; |
nuclear@1 | 18 } |
nuclear@1 | 19 |
nuclear@8 | 20 const Material *Mesh::get_material() const |
nuclear@1 | 21 { |
nuclear@8 | 22 return material; |
nuclear@1 | 23 } |