goat3d
annotate src/mesh.cc @ 17:1d85d7dd0038
goatprim done
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Sep 2013 02:29:52 +0300 |
parents | cd71f0b92f44 |
children | b35427826b60 |
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 void Mesh::set_material(Material *mat) |
nuclear@1 | 9 { |
nuclear@8 | 10 material = mat; |
nuclear@1 | 11 } |
nuclear@1 | 12 |
nuclear@8 | 13 Material *Mesh::get_material() |
nuclear@1 | 14 { |
nuclear@8 | 15 return material; |
nuclear@1 | 16 } |
nuclear@1 | 17 |
nuclear@8 | 18 const Material *Mesh::get_material() const |
nuclear@1 | 19 { |
nuclear@8 | 20 return material; |
nuclear@1 | 21 } |