goat3d
annotate src/mesh.cc @ 10:1f94a2107c64
merged with win32 stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 26 Aug 2013 05:30:40 +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 } |