34 #ifndef ZENI_MATERIAL_H
35 #define ZENI_MATERIAL_H
41 #if defined(REQUIRE_GL_ES)
52 class ZENI_GRAPHICS_DLL Video_GL_Fixed;
53 class ZENI_GRAPHICS_DLL Video_GL_Shader;
54 class ZENI_GRAPHICS_DLL Video_DX9;
69 inline float get_power()
const;
70 float get_shininess()
const;
71 inline const String & get_Texture()
const;
74 inline void set_power(
const float &power);
75 void set_shininess(
const float &shininess);
76 void set_Texture(
const String &texture);
78 #ifndef DISABLE_GL_FIXED
83 #ifndef DISABLE_GL_SHADER
98 void optimize_to_follow(
const Material &rhs);
99 void optimize_to_precede(
const Material &rhs);
100 void clear_optimization();
111 mutable unsigned long m_texture_id;
113 unsigned int m_optimization;
The Direct3D9 Rendering System.
#define ZENI_DEFAULT_MATERIAL_EMISSIVE
Color specular
The specular Color.
bool operator<(const TiXmlString &a, const TiXmlString &b)
bool operator==(const SourceLocation &lhs, const SourceLocation &rhs)
#define ZENI_DEFAULT_MATERIAL_SPECULAR
An Abstraction of a Material.
#define ZENI_DEFAULT_MATERIAL_DIFFUSE
The OpenGL Rendering System.
Color ambient
The ambient Color.
The OpenGL Rendering System.
Color diffuse
The diffuse Color.
Color emissive
The emissive Color.
GLenum GLenum GLuint texture
#define ZENI_DEFAULT_MATERIAL_POWER