|
Python Script Engine
8.3
GL Studio Editor Python Script API
|
Inheritance diagram for GlsRenderEffect:Public Member Functions | |
| GlsRenderEffect (GlsRenderEffect &src) | |
| GlsRenderEffect (disti::GlsRenderEffect *renderEffect, bool incEditorRef) | |
| None | AddRef () |
| None | Release () |
| int | GlsRenderEffect_ClassID () |
| None | SetupEffect (MaterialArray &materialPalette, TexturePalette *texturePalette, TextureSettings &textureSettings, float *viewToWorld3x3, int maxLightNum, int activeLightMask) |
| None | CleanupEffect () |
| int | Compare (GlsRenderEffect *other) |
| bool | Equals (GlsRenderEffect *other) |
| GlsRenderEffect * | Clone ()=0 |
| int | GetVertexAttribIndexForSemantic (int semanticEnum) |
| int | GetVertexAttribIndexForSemantic (int semanticEnum)=0 |
Static Public Member Functions | |
| static int | SetDebugMode (str modeName, bool value) |
| static int | RegisterNewClassID (str debugStr=str()) |
Additional Inherited Members | |
Public Types inherited from VertexAttribIndexLookup | |
| enum | AttributeSemanticEnum { ATTRIB_UNDEFINED = 0 , ATTRIB_POSITION = 0x80000000 , ATTRIB_NORMAL , ATTRIB_BLENDWEIGHT , ATTRIB_TANGENT , ATTRIB_BINORMAL , ATTRIB_BLENDINDICES , ATTRIB_PSIZE , ATTRIB_TEXCOORD0 , ATTRIB_TEXCOORD1 , ATTRIB_TEXCOORD2 , ATTRIB_TEXCOORD3 , ATTRIB_TEXCOORD4 , ATTRIB_TEXCOORD5 , ATTRIB_TEXCOORD6 , ATTRIB_TEXCOORD7 } |
Render effect class.
Encapsulates an effect that can be applied to the OpenGL state to modify the appearance of geometry. This API currently only supports single pass techniques.
| GlsRenderEffect::GlsRenderEffect | ( | GlsRenderEffect & | src | ) |
| GlsRenderEffect::GlsRenderEffect | ( | disti::GlsRenderEffect * | renderEffect, |
| bool | incEditorRef | ||
| ) |
ctor
| renderEffect | GlsRenderEffect to wrap |
| incEditorRef | true if to increment editor ref on with wrapped group (i.e. if this pointer came from the editor) else false |
| None GlsRenderEffect::AddRef | ( | ) |
Manage references to the effect.
| None GlsRenderEffect::CleanupEffect | ( | ) |
Remove the effect trom the OpenGL state.
|
pure virtual |
Returns a new instance of the effect with the same settings as this one.
Implemented in Effect_DiffNormSpecRefl.
| int GlsRenderEffect::Compare | ( | GlsRenderEffect * | other | ) |
Returns 0 if the effects are equal, a positive number if this effect should sort after the other effect, and a negative number if this effect should sort before the other effect.
The rendering system uses this to sort effects.
| bool GlsRenderEffect::Equals | ( | GlsRenderEffect * | other | ) |
Determine if two GlsRenderEffect instances are equivalent The rendering system uses this to eliminate redundant effects.
|
virtual |
VertexAttribIndexLookup override /////////////////////////////////////////.
| semanticEnum | The sematic value (see AttributeSemanticEnum) |
Implements VertexAttribIndexLookup.
| int GlsRenderEffect::GlsRenderEffect_ClassID | ( | ) |
|
static |
| None GlsRenderEffect::Release | ( | ) |
|
static |
| None GlsRenderEffect::SetupEffect | ( | MaterialArray & | materialPalette, |
| TexturePalette * | texturePalette, | ||
| TextureSettings & | textureSettings, | ||
| float * | viewToWorld3x3, | ||
| int | maxLightNum, | ||
| int | activeLightMask | ||
| ) |
Apply the effect to the OpenGL state.
| materialPalette | Used to access material settings |
| texturePalette | Used to access texture maps |
| textureSettings | The object-level texture settings |
| viewToWorld3x3 | A 3x3 matrix containing the current viewToWorld transfrom. Used for environment mapping effects. |
| maxLightNum | Maximum number of active lights |
| activeLightMask | Bit mask for active lights in scene |