goat3dgfx

view src/material.h @ 21:7c593721547f

integrated support for the multiple animation system of libanim
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Dec 2013 11:59:32 +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_