dungeon_crawler
view prototype/src/material.h @ 46:f3030df27110
debugging the particles
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 13 Sep 2012 06:33:51 +0300 |
parents | e5567ddbf2ef |
children | aa9e28670ae2 |
line source
1 #ifndef MATERIAL_H_
2 #define MATERIAL_H_
4 #include "color.h"
5 #include "texman.h"
7 enum {
8 TEXTYPE_DIFFUSE,
9 TEXTYPE_NORMAL,
10 TEXTYPE_SPECULAR,
12 NUM_TEXTURE_TYPES
13 };
15 class Material {
16 public:
17 Color kd, ks;
18 double shin;
19 unsigned int tex[NUM_TEXTURE_TYPES];
21 Material();
23 void load(const aiMaterial *assmat, TextureSet *texset = 0);
25 void setup() const;
26 };
28 #endif // MATERIAL_H_