goat3dgfx
view src/material.h @ 18:6f82b9b6d6c3
added the ability to render in fixed function with the mesh class
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 08 Dec 2013 01:35:30 +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_