-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMaterial.h
40 lines (37 loc) · 843 Bytes
/
Material.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __Material_h__
#define __Material_h__
#include "main.h"
#include "TextureMap.h"
using namespace glm;
class CMaterial
{
private:
string name;
GLfloat ambient[4];
GLfloat diffuse[4];
GLfloat specular[4];
GLfloat emission[4];
GLfloat shininess;
GLfloat shininessStrength;
GLfloat selfIllum;
GLfloat transparency;
public:
CTextureMap texture1;
CTextureMap textureSpecular;
CMaterial();
~CMaterial();
const char* GetName();
void SetName(char* name);
void SetAmbient(vec3 color);
void SetDiffuse(vec3 color);
void SetSpecular(vec3 color);
void SetShininess(float shininess);
void SetShininessStrength(float shininessStrength);
void SetSelfIllum(float selfIllum);
void SetTransparency(float transparency);
bool IsTransparent();
// óñòàíîâêà ðåæèìà ôèëüòðàöèè
void SetFilterMode(char);
void Apply(void*);
};
#endif