dungeon_crawler

annotate prototype/src/material.h @ 29:2fc004802739

lalala
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 26 Aug 2012 03:39:32 +0300
parents e5567ddbf2ef
children aa9e28670ae2
rev   line source
nuclear@11 1 #ifndef MATERIAL_H_
nuclear@11 2 #define MATERIAL_H_
nuclear@11 3
nuclear@11 4 #include "color.h"
nuclear@11 5 #include "texman.h"
nuclear@11 6
nuclear@11 7 enum {
nuclear@11 8 TEXTYPE_DIFFUSE,
nuclear@11 9 TEXTYPE_NORMAL,
nuclear@11 10 TEXTYPE_SPECULAR,
nuclear@11 11
nuclear@11 12 NUM_TEXTURE_TYPES
nuclear@11 13 };
nuclear@11 14
nuclear@11 15 class Material {
nuclear@21 16 public:
nuclear@11 17 Color kd, ks;
nuclear@11 18 double shin;
nuclear@11 19 unsigned int tex[NUM_TEXTURE_TYPES];
nuclear@11 20
nuclear@11 21 Material();
nuclear@11 22
nuclear@11 23 void load(const aiMaterial *assmat, TextureSet *texset = 0);
nuclear@11 24
nuclear@11 25 void setup() const;
nuclear@11 26 };
nuclear@11 27
nuclear@11 28 #endif // MATERIAL_H_