dungeon_crawler

annotate prototype/src/material.h @ 50:c40efa9cf844

torches sound
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 18 Sep 2012 04:45:46 +0300
parents 0588f8a1a351
children
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@48 5 #include "texture.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_