6 #include <gmath/gmath.h>
19 #define NUM_MTL_TEXTURES MTL_TEX_UNKNOWN
24 Vec3 diffuse, specular;
28 Texture *stdtex[NUM_MTL_TEXTURES];
29 std::vector<Texture*> textures;
34 void add_texture(Texture *tex, int type = MTL_TEX_UNKNOWN);
35 void remove_texture(Texture *tex);
38 // returns MTL_TEX_whatever by name
39 int mtl_parse_type(const char *str);
40 // returns the name of a material type
41 const char *mtl_type_string(int type);