#include <RE_OGLMaterial.h>

Public Member Functions | |
| RE_OGLMaterial (const char *materialName) | |
| const char * | getMaterialName () const |
| void | clearTextureIndex () |
| void | clearDiffuseMap () |
| void | setDiffuseMap (TIL_TextureMap *map, int clamp=0, int layer=0) |
| void | setDiffuseMap (const char *mapname, const char *relativeTo, int layer=0) |
| int | getTextureIndex (int layer=0) |
| int | isTextured () const |
| int | isTransparent () const |
| void | setCallback (RE_TextureCallback *cb) |
| RE_TextureCallback * | getCallback () |
| void | doLighting (int yes) |
| int | isLit () const |
| RE_Shader * | createShader () |
| RE_Shader * | getShader () const |
| void | doAlphaTest (int yes) |
| int | testAlpha () const |
| float | amb (unsigned idx) const |
| const float * | amb () const |
| float | diff (unsigned idx) const |
| const float * | diff () const |
| float | spec (unsigned idx) const |
| const float * | spec () const |
| float | emit (unsigned idx) const |
| const float * | emit () const |
| float | alpha () const |
| float | shininess () const |
| void | setAlpha (float a) |
| void | setRoughness (float r) |
| void | setShininess (float r) |
| void | setAmb (float r, float g, float b) |
| void | setDiff (float r, float g, float b) |
| void | setSpec (float r, float g, float b) |
| void | setEmit (float r, float g, float b) |
| void | forceAmb (float r, float g, float b) |
| float | getUnscaledAmbient (unsigned idx) const |
| const float * | getUnscaledAmbient () const |
| virtual void | getVexShader (UT_String &str, float now) |
| RE_Material * | cloneWithoutTexture () const |
Protected Member Functions | |
| virtual | ~RE_OGLMaterial () |
| void | loadShaderAttribNames () |
| void | growLayers (int layer) |
Definition at line 49 of file RE_OGLMaterial.h.
| RE_OGLMaterial::RE_OGLMaterial | ( | const char * | materialName | ) |
| virtual RE_OGLMaterial::~RE_OGLMaterial | ( | ) | [protected, virtual] |
| float RE_OGLMaterial::alpha | ( | ) | const [inline] |
Definition at line 97 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::amb | ( | ) | const [inline] |
Definition at line 89 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::amb | ( | unsigned | idx | ) | const [inline] |
Definition at line 88 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::clearDiffuseMap | ( | ) |
| void RE_OGLMaterial::clearTextureIndex | ( | ) |
| RE_Material* RE_OGLMaterial::cloneWithoutTexture | ( | ) | const |
| RE_Shader* RE_OGLMaterial::createShader | ( | ) |
| const float* RE_OGLMaterial::diff | ( | ) | const [inline] |
Definition at line 91 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::diff | ( | unsigned | idx | ) | const [inline] |
Definition at line 90 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::doAlphaTest | ( | int | yes | ) | [inline] |
Definition at line 84 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::doLighting | ( | int | yes | ) | [inline] |
Definition at line 78 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::emit | ( | ) | const [inline] |
Definition at line 95 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::emit | ( | unsigned | idx | ) | const [inline] |
Definition at line 94 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::forceAmb | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| RE_TextureCallback* RE_OGLMaterial::getCallback | ( | ) | [inline] |
Definition at line 75 of file RE_OGLMaterial.h.
| const char* RE_OGLMaterial::getMaterialName | ( | ) | const [inline] |
Definition at line 54 of file RE_OGLMaterial.h.
| RE_Shader* RE_OGLMaterial::getShader | ( | ) | const |
| int RE_OGLMaterial::getTextureIndex | ( | int | layer = 0 |
) |
| const float* RE_OGLMaterial::getUnscaledAmbient | ( | ) | const [inline] |
Definition at line 121 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::getUnscaledAmbient | ( | unsigned | idx | ) | const [inline] |
Definition at line 120 of file RE_OGLMaterial.h.
| virtual void RE_OGLMaterial::getVexShader | ( | UT_String & | str, | |
| float | now | |||
| ) | [virtual] |
| void RE_OGLMaterial::growLayers | ( | int | layer | ) | [protected] |
| int RE_OGLMaterial::isLit | ( | ) | const [inline] |
Definition at line 79 of file RE_OGLMaterial.h.
| int RE_OGLMaterial::isTextured | ( | ) | const |
| int RE_OGLMaterial::isTransparent | ( | ) | const [inline] |
Definition at line 68 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::loadShaderAttribNames | ( | ) | [protected] |
| void RE_OGLMaterial::setAlpha | ( | float | a | ) |
| void RE_OGLMaterial::setAmb | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setCallback | ( | RE_TextureCallback * | cb | ) |
| void RE_OGLMaterial::setDiff | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setDiffuseMap | ( | const char * | mapname, | |
| const char * | relativeTo, | |||
| int | layer = 0 | |||
| ) |
| void RE_OGLMaterial::setDiffuseMap | ( | TIL_TextureMap * | map, | |
| int | clamp = 0, |
|||
| int | layer = 0 | |||
| ) |
| void RE_OGLMaterial::setEmit | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setRoughness | ( | float | r | ) |
| void RE_OGLMaterial::setShininess | ( | float | r | ) |
| void RE_OGLMaterial::setSpec | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| float RE_OGLMaterial::shininess | ( | ) | const [inline] |
Definition at line 98 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::spec | ( | ) | const [inline] |
Definition at line 93 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::spec | ( | unsigned | idx | ) | const [inline] |
Definition at line 92 of file RE_OGLMaterial.h.
| int RE_OGLMaterial::testAlpha | ( | ) | const [inline] |
Definition at line 85 of file RE_OGLMaterial.h.
1.5.9