goat3d

view src/mesh.cc @ 16:cb6c1a945a11

goat3d is starting to become functional inch by inch
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Sep 2013 14:16:09 +0300
parents cd71f0b92f44
children b35427826b60
line source
1 #include "mesh.h"
3 Mesh::Mesh()
4 {
5 material = 0;
6 }
8 void Mesh::set_material(Material *mat)
9 {
10 material = mat;
11 }
13 Material *Mesh::get_material()
14 {
15 return material;
16 }
18 const Material *Mesh::get_material() const
19 {
20 return material;
21 }