goat3dgfx

diff src/material.h @ 0:1873dfd13f2d

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Nov 2013 05:27:09 +0200
parents
children 7d6b667821cf
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/material.h	Thu Nov 14 05:27:09 2013 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +#ifndef MATERIAL_H_
     1.5 +#define MATERIAL_H_
     1.6 +
     1.7 +#include "vmath/vmath.h"
     1.8 +#include "texture.h"
     1.9 +
    1.10 +enum {
    1.11 +	TEX_DIFFUSE,
    1.12 +	TEX_SPECULAR,
    1.13 +	TEX_NORMAL,
    1.14 +	TEX_MISC,
    1.15 +
    1.16 +	MAX_MTL_TEXTURES
    1.17 +};
    1.18 +
    1.19 +class Material {
    1.20 +public:
    1.21 +	Vector3 diffuse, specular;
    1.22 +	float alpha;
    1.23 +	float shininess;
    1.24 +
    1.25 +	Texture *tex[MAX_MTL_TEXTURES];
    1.26 +
    1.27 +	Material();
    1.28 +
    1.29 +	void setup(bool use_textures = true) const;
    1.30 +};
    1.31 +
    1.32 +#endif	// MATERIAL_H_