vrshoot

diff src/material.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/material.h	Sat Feb 01 19:58:19 2014 +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_