tinygi

diff src/object.h @ 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.h	Mon Jul 20 04:38:53 2015 +0300
     1.2 +++ b/src/object.h	Tue Jul 21 04:30:00 2015 +0300
     1.3 @@ -4,10 +4,17 @@
     1.4  #include "tinygi.h"
     1.5  #include "vmath/vmath.h"
     1.6  
     1.7 +struct material {
     1.8 +	vec3_t color;
     1.9 +	float roughness;
    1.10 +	float opacity;
    1.11 +	float ior;
    1.12 +};
    1.13 +
    1.14  struct tgi_object {
    1.15  	char *name;
    1.16  	struct tgi_shape *shape;
    1.17 -	struct tgi_material *mtl;
    1.18 +	struct material mtl;
    1.19  	mat4_t xform, inv_xform;
    1.20  
    1.21  	struct tgi_object *next;	/* for linking it into various lists */