conworlds

annotate src/material.h @ 16:7a2041ddb7e7

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