#include <RE_OGLMaterial.h>

Public Member Functions | |
| RE_OGLMaterial (const char *materialName) | |
| const char * | getMaterialName () const |
| void | setDefaultShader (RE_Shader *sh) |
| bool | isDefaultShader () const |
| void | clearTexture (RE_Render *r) |
| void | clearDiffuseMap () |
| RE_OGLTexture * | getTexture (RE_Render *r, int layer) |
| RE_OGLTexture * | getSpecularMap (RE_Render *r, int &texcoords) |
| RE_OGLTexture * | getBumpMap (RE_Render *r, int &texcoords) |
| RE_OGLTexture * | getNormalMap (RE_Render *r, int &texcoords) |
| RE_OGLTexture * | getOpacityMap (RE_Render *r, int &texcoords) |
| RE_OGLTexture * | getDisplaceMap (RE_Render *r, int &texcoords) |
| RE_OGLTexture * | getEnvMap (RE_Render *r) |
| bool | hasSpecularMap () const |
| bool | hasBumpMap () const |
| bool | hasNormalMap () const |
| bool | hasOpacityMap () const |
| bool | hasDisplaceMap () const |
| bool | hasEnvMap () const |
| bool | isTransparent (bool check_diffuse_alpha) const |
| bool | isTextured () const |
| bool | getMultiTextureCoords (int for_layer, UT_IntArray &txcoord_layers) const |
| void | setCallback (RE_TextureCallback *cb) |
| RE_TextureCallback * | getCallback () |
| void | setTextureFormat (RE_TextureCompress format) |
| RE_TextureCompress | getTextureFormat () const |
| void | limitTextureSize (bool limit, int w, int h) |
| bool | limitTextureSize () const |
| void | getMaxTextureSize (int &w, int &h) |
| void | setTextureScale (float sc) |
| float | getTextureScale () const |
| void | mipMapTextures (bool yes) |
| bool | mipMapTextures () const |
| void | setAnisotropySamples (int samp) |
| int | getAnisotropySamples () const |
| void | allowShaders (bool yes) |
| bool | allowShaders () const |
| void | doLighting (int yes) |
| int | isLit () const |
| RE_Shader * | createShader (RE_Render *r, const char *name=0) |
| RE_Shader * | getShader () const |
| void | removeShader () |
| 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 | setNonLitColor (const UT_Color &col) |
| UT_Color | getNonLitColor () const |
| void | setSpecularParms (bool useshiny, float shiny_start, float shiny_end) |
| void | setBumpParms (float scale, bool bias, int comps, bool invert) |
| void | setNormalParms (bool bias) |
| void | setEnvParms (float scale, UT_Vector3 rot, UT_XformOrder rord) |
| 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 |
| bool | setupDefaultMaterial (RE_Render *r, int layer, bool textured) |
| bool | bindTextureMaps (RE_Render *r, int layer) |
Protected Member Functions | |
| virtual | ~RE_OGLMaterial () |
| void | loadShaderAttribNames () |
| void | growLayers (int layer) |
| RE_OGLTexture * | fetchTexture (RE_Render *r, RE_TextureMap *map) |
Definition at line 66 of file RE_OGLMaterial.h.
| RE_OGLMaterial::RE_OGLMaterial | ( | const char * | materialName | ) |
| virtual RE_OGLMaterial::~RE_OGLMaterial | ( | ) | [protected, virtual] |
| bool RE_OGLMaterial::allowShaders | ( | ) | const [inline] |
Definition at line 139 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::allowShaders | ( | bool | yes | ) | [inline] |
Definition at line 138 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::alpha | ( | ) | const [inline] |
Definition at line 162 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::amb | ( | ) | const [inline] |
Definition at line 154 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::amb | ( | unsigned | idx | ) | const [inline] |
Definition at line 153 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::bindTextureMaps | ( | RE_Render * | r, | |
| int | layer | |||
| ) |
| void RE_OGLMaterial::clearDiffuseMap | ( | ) |
| void RE_OGLMaterial::clearTexture | ( | RE_Render * | r | ) |
| RE_Material* RE_OGLMaterial::cloneWithoutTexture | ( | ) | const |
| const float* RE_OGLMaterial::diff | ( | ) | const [inline] |
Definition at line 156 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::diff | ( | unsigned | idx | ) | const [inline] |
Definition at line 155 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::doAlphaTest | ( | int | yes | ) | [inline] |
Definition at line 149 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::doLighting | ( | int | yes | ) | [inline] |
Definition at line 142 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::emit | ( | ) | const [inline] |
Definition at line 160 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::emit | ( | unsigned | idx | ) | const [inline] |
Definition at line 159 of file RE_OGLMaterial.h.
| RE_OGLTexture* RE_OGLMaterial::fetchTexture | ( | RE_Render * | r, | |
| RE_TextureMap * | map | |||
| ) | [protected] |
| void RE_OGLMaterial::forceAmb | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| int RE_OGLMaterial::getAnisotropySamples | ( | ) | const [inline] |
Definition at line 136 of file RE_OGLMaterial.h.
| RE_OGLTexture* RE_OGLMaterial::getBumpMap | ( | RE_Render * | r, | |
| int & | texcoords | |||
| ) |
| RE_TextureCallback* RE_OGLMaterial::getCallback | ( | ) | [inline] |
Definition at line 118 of file RE_OGLMaterial.h.
| RE_OGLTexture* RE_OGLMaterial::getDisplaceMap | ( | RE_Render * | r, | |
| int & | texcoords | |||
| ) |
| RE_OGLTexture* RE_OGLMaterial::getEnvMap | ( | RE_Render * | r | ) |
| const char* RE_OGLMaterial::getMaterialName | ( | ) | const [inline] |
Definition at line 71 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::getMaxTextureSize | ( | int & | w, | |
| int & | h | |||
| ) | [inline] |
Definition at line 125 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::getMultiTextureCoords | ( | int | for_layer, | |
| UT_IntArray & | txcoord_layers | |||
| ) | const |
| UT_Color RE_OGLMaterial::getNonLitColor | ( | ) | const [inline] |
Definition at line 179 of file RE_OGLMaterial.h.
| RE_OGLTexture* RE_OGLMaterial::getNormalMap | ( | RE_Render * | r, | |
| int & | texcoords | |||
| ) |
| RE_OGLTexture* RE_OGLMaterial::getOpacityMap | ( | RE_Render * | r, | |
| int & | texcoords | |||
| ) |
| RE_Shader* RE_OGLMaterial::getShader | ( | ) | const |
| RE_OGLTexture* RE_OGLMaterial::getSpecularMap | ( | RE_Render * | r, | |
| int & | texcoords | |||
| ) |
| RE_OGLTexture* RE_OGLMaterial::getTexture | ( | RE_Render * | r, | |
| int | layer | |||
| ) |
| RE_TextureCompress RE_OGLMaterial::getTextureFormat | ( | ) | const [inline] |
Definition at line 121 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::getTextureScale | ( | ) | const [inline] |
Definition at line 130 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::getUnscaledAmbient | ( | ) | const [inline] |
Definition at line 196 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::getUnscaledAmbient | ( | unsigned | idx | ) | const [inline] |
Definition at line 195 of file RE_OGLMaterial.h.
| virtual void RE_OGLMaterial::getVexShader | ( | UT_String & | str, | |
| float | now | |||
| ) | [virtual] |
| void RE_OGLMaterial::growLayers | ( | int | layer | ) | [protected] |
| bool RE_OGLMaterial::hasBumpMap | ( | ) | const [inline] |
Definition at line 97 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::hasDisplaceMap | ( | ) | const [inline] |
Definition at line 100 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::hasEnvMap | ( | ) | const [inline] |
Definition at line 101 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::hasNormalMap | ( | ) | const [inline] |
Definition at line 98 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::hasOpacityMap | ( | ) | const [inline] |
Definition at line 99 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::hasSpecularMap | ( | ) | const [inline] |
Definition at line 96 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::isDefaultShader | ( | ) | const [inline] |
Definition at line 74 of file RE_OGLMaterial.h.
| int RE_OGLMaterial::isLit | ( | ) | const [inline] |
Definition at line 143 of file RE_OGLMaterial.h.
| bool RE_OGLMaterial::isTextured | ( | ) | const |
| bool RE_OGLMaterial::isTransparent | ( | bool | check_diffuse_alpha | ) | const |
| bool RE_OGLMaterial::limitTextureSize | ( | ) | const [inline] |
Definition at line 124 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::limitTextureSize | ( | bool | limit, | |
| int | w, | |||
| int | h | |||
| ) |
| void RE_OGLMaterial::loadShaderAttribNames | ( | ) | [protected] |
| bool RE_OGLMaterial::mipMapTextures | ( | ) | const [inline] |
Definition at line 133 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::mipMapTextures | ( | bool | yes | ) |
| void RE_OGLMaterial::removeShader | ( | ) |
| void RE_OGLMaterial::setAlpha | ( | float | a | ) |
| void RE_OGLMaterial::setAmb | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setAnisotropySamples | ( | int | samp | ) |
| void RE_OGLMaterial::setBumpParms | ( | float | scale, | |
| bool | bias, | |||
| int | comps, | |||
| bool | invert | |||
| ) |
| void RE_OGLMaterial::setCallback | ( | RE_TextureCallback * | cb | ) |
| void RE_OGLMaterial::setDefaultShader | ( | RE_Shader * | sh | ) |
| void RE_OGLMaterial::setDiff | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setEmit | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setEnvParms | ( | float | scale, | |
| UT_Vector3 | rot, | |||
| UT_XformOrder | rord | |||
| ) |
| void RE_OGLMaterial::setNonLitColor | ( | const UT_Color & | col | ) | [inline] |
Definition at line 178 of file RE_OGLMaterial.h.
| void RE_OGLMaterial::setNormalParms | ( | bool | bias | ) |
| void RE_OGLMaterial::setRoughness | ( | float | r | ) |
| void RE_OGLMaterial::setShininess | ( | float | r | ) |
| void RE_OGLMaterial::setSpec | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
| void RE_OGLMaterial::setSpecularParms | ( | bool | useshiny, | |
| float | shiny_start, | |||
| float | shiny_end | |||
| ) |
| void RE_OGLMaterial::setTextureFormat | ( | RE_TextureCompress | format | ) |
| void RE_OGLMaterial::setTextureScale | ( | float | sc | ) |
| bool RE_OGLMaterial::setupDefaultMaterial | ( | RE_Render * | r, | |
| int | layer, | |||
| bool | textured | |||
| ) |
| float RE_OGLMaterial::shininess | ( | ) | const [inline] |
Definition at line 163 of file RE_OGLMaterial.h.
| const float* RE_OGLMaterial::spec | ( | ) | const [inline] |
Definition at line 158 of file RE_OGLMaterial.h.
| float RE_OGLMaterial::spec | ( | unsigned | idx | ) | const [inline] |
Definition at line 157 of file RE_OGLMaterial.h.
| int RE_OGLMaterial::testAlpha | ( | ) | const [inline] |
Definition at line 150 of file RE_OGLMaterial.h.
1.5.9