goat3dgfx
view src/material.h @ 25:6236080aaea4
LIBOVR conditional compilation fix
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 27 Feb 2014 01:40:12 +0200 |
parents | 1873dfd13f2d |
children |
line source
1 #ifndef MATERIAL_H_
2 #define MATERIAL_H_
4 #include "vmath/vmath.h"
5 #include "texture.h"
7 namespace goatgfx {
9 enum {
10 TEX_DIFFUSE,
11 TEX_SPECULAR,
12 TEX_NORMAL,
13 TEX_MISC,
15 MAX_MTL_TEXTURES
16 };
18 class Material {
19 public:
20 Vector3 diffuse, specular;
21 float alpha;
22 float shininess;
24 Texture *tex[MAX_MTL_TEXTURES];
26 Material();
28 void setup(bool use_textures = true) const;
29 };
31 } // namespace goatgfx
33 #endif // MATERIAL_H_