Couch
Material.h
1
#ifndef MATERIAL_H
2
#define MATERIAL_H
3
4
#include <GL/glew.h>
5
#include "stb_image.h"
6
7
#include "types.h"
8
#include "Util.h"
9
10
typedef
Vector3 Color;
11
12
class
Texture
{
13
public
:
14
int
width, height;
15
Id id;
16
static
Texture
FromFile(
const
char
*filename);
17
Texture
();
18
};
19
20
struct
Material
{
21
Texture
tex;
22
bool
usesTex;
23
24
Color ambient;
25
Color diffuse;
26
Color specular;
27
28
int
shininess;
29
30
float
alphaScissor;
31
bool
unshaded;
32
bool
cullBack;
33
Material
();
34
};
35
36
#endif
/* MATERIAL_H */
Texture
Definition:
Material.h:12
Material
Definition:
Material.h:20
Generated by
1.9.1