6 #include <gmath/gmath.h>
21 MTL_MIRROR_AUTO, // determine mirror plane automatically
22 MTL_MIRROR_AABB_PX, // plane = AABB +X side
23 MTL_MIRROR_AABB_NX, // plane = AABB -X side
24 MTL_MIRROR_AABB_PY, // plane = AABB +Y side
25 MTL_MIRROR_AABB_NY, // plane = AABB -Y side
26 MTL_MIRROR_AABB_PZ, // plane = AABB +Z side
27 MTL_MIRROR_AABB_NZ // plane = AABB -Z side
30 #define NUM_MTL_TEXTURES MTL_TEX_UNKNOWN
35 Vec3 diffuse, specular;
40 int flat_mirror; // see MTL_MIRROR_* enumerations above
42 Texture *stdtex[NUM_MTL_TEXTURES];
43 std::vector<Texture*> textures;
48 void add_texture(Texture *tex, int type = MTL_TEX_UNKNOWN);
49 void remove_texture(Texture *tex);
52 // returns MTL_TEX_whatever by name
53 int mtl_parse_type(const char *str);
54 // returns the name of a material type
55 const char *mtl_type_string(int type);