tinygi
diff src/object.c @ 2:72752a1b3dbe
images and shapes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Jul 2015 04:30:00 +0300 |
parents | bc64090fe3d1 |
children |
line diff
1.1 --- a/src/object.c Mon Jul 20 04:38:53 2015 +0300 1.2 +++ b/src/object.c Tue Jul 21 04:30:00 2015 +0300 1.3 @@ -38,9 +38,6 @@ 1.4 if(o->shape) { 1.5 tgi_destroy_shape(o->shape); 1.6 } 1.7 - if(o->mtl) { 1.8 - tgi_destroy_material(o->mtl); 1.9 - } 1.10 free(o->name); 1.11 } 1.12 } 1.13 @@ -53,14 +50,6 @@ 1.14 o->shape = s; 1.15 } 1.16 1.17 -void tgi_set_object_mtl(struct tgi_object *o, struct tgi_material *m) 1.18 -{ 1.19 - if(o->mtl) { 1.20 - tgi_destroy_material(o->mtl); 1.21 - } 1.22 - o->mtl = m; 1.23 -} 1.24 - 1.25 /* mat should point to an array of 16 floats (4x4 homogeneous transformation matrix) */ 1.26 void tgi_load_matrix(struct tgi_object *o, const float *mat) 1.27 {