dungeon_crawler
view prototype/src/material.h @ 15:3a3236a4833c
adding shaders and renderer abstraction
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 19 Aug 2012 23:09:30 +0300 |
parents | |
children | 0588f8a1a351 |
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 private:
17 Color kd, ks;
18 double shin;
19 unsigned int tex[NUM_TEXTURE_TYPES];
21 public:
22 Material();
24 void load(const aiMaterial *assmat, TextureSet *texset = 0);
26 void setup() const;
27 };
29 #endif // MATERIAL_H_