#include <glfxscene.h>
Inheritance diagram for GLFX::Scene::Material:
Public Member Functions | |
Material (EffectManager *fxMgr) | |
unsigned long | AddRef () |
unsigned long | Release () |
const char * | GetName () |
void | SetName (const char *name) |
GLuint | GetDiffuseTexture () |
const char * | GetDiffuseMap () |
void | SetDiffuseMap (const char *mapName) |
const char * | GetGlossMap () |
void | SetGlossMap (const char *mapName) |
const char * | GetGlowMap () |
void | SetGlowMap (const char *mapName) |
const char * | GetBumpMap () |
void | SetBumpMap (const char *mapName) |
virtual void | LoadTextures () |
virtual void | DeleteTextures () |
Public Attributes | |
Vec4 | ambient |
Vec4 | diffuse |
Vec4 | specular |
float | level |
float | transparency |
GLFX::Scene::Material::Material | ( | EffectManager * | fxMgr | ) | [inline] |
Create a material.
unsigned long GLFX::Scene::Material::AddRef | ( | ) | [inline, virtual] |
Increse reference count of this object.
Implements GLFX::IObject.
unsigned long GLFX::Scene::Material::Release | ( | ) | [inline, virtual] |
Decrese reference count of this object, and delete it when reference count is zero.
Implements GLFX::IObject.
const char* GLFX::Scene::Material::GetName | ( | ) | [inline] |
Gets material name.
void GLFX::Scene::Material::SetName | ( | const char * | name | ) | [inline] |
Sets material name.
GLuint GLFX::Scene::Material::GetDiffuseTexture | ( | ) | [inline] |
Get diffuse texture (OpenGL texture).
const char* GLFX::Scene::Material::GetDiffuseMap | ( | ) | [inline] |
Gets diffuse texture name.
void GLFX::Scene::Material::SetDiffuseMap | ( | const char * | mapName | ) | [inline] |
Sets diffuse texture name.
const char* GLFX::Scene::Material::GetGlossMap | ( | ) | [inline] |
Gets gloss texture name.
void GLFX::Scene::Material::SetGlossMap | ( | const char * | mapName | ) | [inline] |
Sets gloss texture name.
const char* GLFX::Scene::Material::GetGlowMap | ( | ) | [inline] |
Gets glow texture name.
void GLFX::Scene::Material::SetGlowMap | ( | const char * | mapName | ) | [inline] |
Sets glow texture name.
const char* GLFX::Scene::Material::GetBumpMap | ( | ) | [inline] |
Gets bump texture name.
void GLFX::Scene::Material::SetBumpMap | ( | const char * | mapName | ) | [inline] |
Sets bump texture name.
virtual void GLFX::Scene::Material::LoadTextures | ( | ) | [inline, virtual] |
Loads material texture.
virtual void GLFX::Scene::Material::DeleteTextures | ( | ) | [inline, virtual] |
Frees material textures.
Material ambient color.
Material diffuse color.
Material specular color.
Material specular level.
Material transparency level.