goat3d

view src/mesh.cc @ 9:04bb114fcf05

implementing Scene::save, lots to do still
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Aug 2013 06:36:47 +0300
parents e46529a5d057
children f1b4c27382ce
line source
1 #include "mesh.h"
3 Mesh::Mesh()
4 {
5 material = 0;
6 }
8 Mesh::~Mesh() {}
10 void Mesh::set_material(Material *mat)
11 {
12 material = mat;
13 }
15 Material *Mesh::get_material()
16 {
17 return material;
18 }
20 const Material *Mesh::get_material() const
21 {
22 return material;
23 }