Subversion Repositories gelsvn

Rev

Rev 145 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 153
Line 3... Line 3...
3
 
3
 
4
#include <string>
4
#include <string>
5
#include <vector>
5
#include <vector>
6
#include "CGLA/Vec3f.h"
6
#include "CGLA/Vec3f.h"
7
#include "CGLA/Vec3i.h"
7
#include "CGLA/Vec3i.h"
8
#include "Texmap.h"
-
 
9
 
8
 
10
namespace Geometry
9
namespace GLGraphics
11
{
10
{
12
	struct Material
11
		struct Material
13
	{
12
		{
14
		std::string name;			       	/* name of material */
13
				std::string name;			       	/* name of material */
15
		float diffuse[4];			/* diffuse component */
14
				float diffuse[4];			/* diffuse component */
16
		float ambient[4];			/* ambient component */
15
				float ambient[4];			/* ambient component */
17
		float specular[4];		/* specular component */
16
				float specular[4];		/* specular component */
18
		float shininess;			/* specular exponent */
17
				float shininess;			/* specular exponent */
-
 
18
 
-
 
19
				string tex_path, tex_name;
19
		int tex_id;
20
				int tex_id;
20
 
21
 
21
		Material():	name("default"), tex_id(-1) 
22
				Material():	name("default"), tex_id(-1) 
22
		{
23
						{
23
			shininess = 0;
24
								shininess = 0;