vrshoot

annotate src/material.h @ 1:e7ca128b8713

looks nice :)
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Feb 2014 00:35:22 +0200
parents
children
rev   line source
nuclear@0 1 #ifndef MATERIAL_H_
nuclear@0 2 #define MATERIAL_H_
nuclear@0 3
nuclear@0 4 #include "vmath/vmath.h"
nuclear@0 5 #include "texture.h"
nuclear@0 6
nuclear@0 7 enum {
nuclear@0 8 TEX_DIFFUSE,
nuclear@0 9 TEX_SPECULAR,
nuclear@0 10 TEX_NORMAL,
nuclear@0 11 TEX_MISC,
nuclear@0 12
nuclear@0 13 MAX_MTL_TEXTURES
nuclear@0 14 };
nuclear@0 15
nuclear@0 16 class Material {
nuclear@0 17 public:
nuclear@0 18 Vector3 diffuse, specular;
nuclear@0 19 float alpha;
nuclear@0 20 float shininess;
nuclear@0 21
nuclear@0 22 Texture *tex[MAX_MTL_TEXTURES];
nuclear@0 23
nuclear@0 24 Material();
nuclear@0 25
nuclear@0 26 void setup(bool use_textures = true) const;
nuclear@0 27 };
nuclear@0 28
nuclear@0 29 #endif // MATERIAL_H_