X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fmaterial.h;h=3d0b566852de23ac40b5d7c5b55ed078851e8f75;hp=979bbd953dc802e7d06076cc6e02fcdea8d2b5c6;hb=d47a663825bd358d2165c1a4b040cc828aeb4991;hpb=8137121400748ee8afb1608253aae15323c5e3a2 diff --git a/src/material.h b/src/material.h index 979bbd9..3d0b566 100644 --- a/src/material.h +++ b/src/material.h @@ -25,6 +25,9 @@ public: float shininess; float alpha; + float reflect; + bool flat_mirror; + Texture *stdtex[NUM_MTL_TEXTURES]; std::vector textures; @@ -32,6 +35,12 @@ public: void setup() const; void add_texture(Texture *tex, int type = MTL_TEX_UNKNOWN); + void remove_texture(Texture *tex); }; +// returns MTL_TEX_whatever by name +int mtl_parse_type(const char *str); +// returns the name of a material type +const char *mtl_type_string(int type); + #endif // MATERIAL_H_