tinygi

view 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 source
1 #ifndef TGI_OBJECT_H_
2 #define TGI_OBJECT_H_
4 #include "tinygi.h"
5 #include "vmath/vmath.h"
7 struct material {
8 vec3_t color;
9 float roughness;
10 float opacity;
11 float ior;
12 };
14 struct tgi_object {
15 char *name;
16 struct tgi_shape *shape;
17 struct material mtl;
18 mat4_t xform, inv_xform;
20 struct tgi_object *next; /* for linking it into various lists */
21 };
23 #endif /* TGI_OBJECT_H_ */