goat3dgfx

view src/material.h @ 9:25b911c7c35c

fixed some line endings fixed the cubemap2.jpg file in examples/cubemap/data which was resized improperly causing seams...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 18 Nov 2013 04:10:19 +0200
parents
children 7d6b667821cf
line source
1 #ifndef MATERIAL_H_
2 #define MATERIAL_H_
4 #include "vmath/vmath.h"
5 #include "texture.h"
7 enum {
8 TEX_DIFFUSE,
9 TEX_SPECULAR,
10 TEX_NORMAL,
11 TEX_MISC,
13 MAX_MTL_TEXTURES
14 };
16 class Material {
17 public:
18 Vector3 diffuse, specular;
19 float alpha;
20 float shininess;
22 Texture *tex[MAX_MTL_TEXTURES];
24 Material();
26 void setup(bool use_textures = true) const;
27 };
29 #endif // MATERIAL_H_