Python Script Engine  8.1
GL Studio Editor Python Script API
Effect_DiffNormSpecRefl Class Reference
+ Inheritance diagram for Effect_DiffNormSpecRefl:

Private Member Functions

 Effect_DiffNormSpecRefl ()
 
 Effect_DiffNormSpecRefl (Effect_DiffNormSpecRefl &src)
 
 Effect_DiffNormSpecRefl (disti::Effect_DiffNormSpecRefl *effectDNSR, bool incEditorRef)
 
void SetMaterialIndex (unsigned int materialIndex)
 
unsigned int GetMaterialIndex ()
 
void SetUseVertexColor (bool value)
 
bool GetUseVertexColor ()
 
void SetDiffuseTextureIndex (int textureIndex)
 
int GetDiffuseTextureIndex ()
 
void SetNormalTextureIndex (int textureIndex)
 
int GetNormalTextureIndex ()
 
void SetSpecularTextureIndex (int textureIndex)
 
int GetSpecularTextureIndex ()
 
void SetReflectionTextureIndex (int textureIndex)
 
int GetReflectionTextureIndex ()
 
void SetDiffuseAmount (float value)
 
float GetDiffuseAmount ()
 
void SetNormalAmount (float value)
 
float GetNormalAmount ()
 
void SetSpecularAmount (float value)
 
float GetSpecularAmount ()
 
void SetReflectionAmount (float value)
 
float GetReflectionAmount ()
 
void SetNormalMapFlipGreen (bool value)
 
bool GetNormalMapFlipGreen ()
 
void SetDiffuseUVWSettings (float uOffset, float vOffset, float uTiling, float vTiling, float angle)
 
void GetDiffuseUVWSettings (float &uOffset, float &vOffset, float &uTiling, float &vTiling, float &angle)
 
void SetNormalUVWSettings (float uOffset, float vOffset, float uTiling, float vTiling, float angle)
 
void GetNormalUVWSettings (float &uOffset, float &vOffset, float &uTiling, float &vTiling, float &angle)
 
void SetSpecularUVWSettings (float uOffset, float vOffset, float uTiling, float vTiling, float angle)
 
void GetSpecularUVWSettings (float &uOffset, float &vOffset, float &uTiling, float &vTiling, float &angle)
 
void SelectShader ()
 
void TextureUVWSettingsChanged ()
 
bool UsesTextureTransforms ()
 
virtual int GetVertexAttribIndexForSemantic (int semanticEnum)
 
virtual void AddRef ()
 
virtual void Release ()
 
virtual unsigned int GlsRenderEffect_ClassID ()
 
virtual void SetupEffect (MaterialArray &materialPalette, TexturePalette *texturePalette, TextureSettings &textureSettings, float *viewToWorld3x3, unsigned int maxLightNum, unsigned int activeLightMask)
 
virtual void CleanupEffect ()
 
virtual int Compare (GlsRenderEffect *)
 
virtual GlsRenderEffectClone ()
 

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
}
 
- Public Member Functions inherited from GlsRenderEffect
 GlsRenderEffect (GlsRenderEffect &src)
 
 GlsRenderEffect (disti::GlsRenderEffect *renderEffect, bool incEditorRef)
 
virtual bool Equals (GlsRenderEffect *other)
 
int GetVertexAttribIndexForSemantic (int semanticEnum)
 
- Static Public Member Functions inherited from GlsRenderEffect
static unsigned int SetDebugMode (String modeName, bool value)
 
static unsigned int RegisterNewClassID (String debugStr=String())
 

Constructor & Destructor Documentation

Effect_DiffNormSpecRefl::Effect_DiffNormSpecRefl ( )
private

Constructor.

Effect_DiffNormSpecRefl::Effect_DiffNormSpecRefl ( Effect_DiffNormSpecRefl src)
private
Effect_DiffNormSpecRefl::Effect_DiffNormSpecRefl ( disti::Effect_DiffNormSpecRefl *  effectDNSR,
bool  incEditorRef 
)
private

Constructor.

Parameters
effectDNSREffect_DiffNormSpecRefl to wrap
incEditorReftrue if to increment editor ref on with wrapped group (i.e. if this pointer came from the editor) else false

Member Function Documentation

virtual void Effect_DiffNormSpecRefl::AddRef ( )
privatevirtual

Manage references to the effect.

Reimplemented from GlsRenderEffect.

virtual void Effect_DiffNormSpecRefl::CleanupEffect ( )
privatevirtual

Remove the effect trom the OpenGL state.

Reimplemented from GlsRenderEffect.

virtual GlsRenderEffect* Effect_DiffNormSpecRefl::Clone ( )
privatevirtual

Returns a new instance of the effect with the same settings as this one.

Implements GlsRenderEffect.

virtual int Effect_DiffNormSpecRefl::Compare ( GlsRenderEffect other)
privatevirtual

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.

Reimplemented from GlsRenderEffect.

float Effect_DiffNormSpecRefl::GetDiffuseAmount ( )
private
int Effect_DiffNormSpecRefl::GetDiffuseTextureIndex ( )
private
void Effect_DiffNormSpecRefl::GetDiffuseUVWSettings ( float &  uOffset,
float &  vOffset,
float &  uTiling,
float &  vTiling,
float &  angle 
)
private
unsigned int Effect_DiffNormSpecRefl::GetMaterialIndex ( )
private
float Effect_DiffNormSpecRefl::GetNormalAmount ( )
private
bool Effect_DiffNormSpecRefl::GetNormalMapFlipGreen ( )
private
int Effect_DiffNormSpecRefl::GetNormalTextureIndex ( )
private
void Effect_DiffNormSpecRefl::GetNormalUVWSettings ( float &  uOffset,
float &  vOffset,
float &  uTiling,
float &  vTiling,
float &  angle 
)
private
float Effect_DiffNormSpecRefl::GetReflectionAmount ( )
private
int Effect_DiffNormSpecRefl::GetReflectionTextureIndex ( )
private
float Effect_DiffNormSpecRefl::GetSpecularAmount ( )
private
int Effect_DiffNormSpecRefl::GetSpecularTextureIndex ( )
private
void Effect_DiffNormSpecRefl::GetSpecularUVWSettings ( float &  uOffset,
float &  vOffset,
float &  uTiling,
float &  vTiling,
float &  angle 
)
private
bool Effect_DiffNormSpecRefl::GetUseVertexColor ( )
private
virtual int Effect_DiffNormSpecRefl::GetVertexAttribIndexForSemantic ( int  semanticEnum)
privatevirtual
Returns
The attributeIndex that should be used to pass the vertex attributes or -1 if they are not needed (see glVertexAttrib)
Parameters
semanticEnumThe sematic value (see AttributeSemanticEnum)

Implements VertexAttribIndexLookup.

virtual unsigned int Effect_DiffNormSpecRefl::GlsRenderEffect_ClassID ( )
privatevirtual

Reimplemented from GlsRenderEffect.

virtual void Effect_DiffNormSpecRefl::Release ( )
privatevirtual

Reimplemented from GlsRenderEffect.

void Effect_DiffNormSpecRefl::SelectShader ( )
private
void Effect_DiffNormSpecRefl::SetDiffuseAmount ( float  value)
private
void Effect_DiffNormSpecRefl::SetDiffuseTextureIndex ( int  textureIndex)
private
void Effect_DiffNormSpecRefl::SetDiffuseUVWSettings ( float  uOffset,
float  vOffset,
float  uTiling,
float  vTiling,
float  angle 
)
private
void Effect_DiffNormSpecRefl::SetMaterialIndex ( unsigned int  materialIndex)
private
void Effect_DiffNormSpecRefl::SetNormalAmount ( float  value)
private
void Effect_DiffNormSpecRefl::SetNormalMapFlipGreen ( bool  value)
private
void Effect_DiffNormSpecRefl::SetNormalTextureIndex ( int  textureIndex)
private
void Effect_DiffNormSpecRefl::SetNormalUVWSettings ( float  uOffset,
float  vOffset,
float  uTiling,
float  vTiling,
float  angle 
)
private
void Effect_DiffNormSpecRefl::SetReflectionAmount ( float  value)
private
void Effect_DiffNormSpecRefl::SetReflectionTextureIndex ( int  textureIndex)
private
void Effect_DiffNormSpecRefl::SetSpecularAmount ( float  value)
private
void Effect_DiffNormSpecRefl::SetSpecularTextureIndex ( int  textureIndex)
private
void Effect_DiffNormSpecRefl::SetSpecularUVWSettings ( float  uOffset,
float  vOffset,
float  uTiling,
float  vTiling,
float  angle 
)
private
virtual void Effect_DiffNormSpecRefl::SetupEffect ( MaterialArray materialPalette,
TexturePalette texturePalette,
TextureSettings textureSettings,
float *  viewToWorld3x3,
unsigned int  maxLightNum,
unsigned int  activeLightMask 
)
privatevirtual

Apply the effect to the OpenGL state.

Parameters
materialPaletteUsed to access material settings
texturePaletteUsed to access texture maps
textureSettingsThe object-level texture settings
viewToWorld3x3A 3x3 matrix containing the current viewToWorld transfrom. Used for environment mapping effects.
maxLightNumMaximum number of active lights
activeLightMaskBit mask for active lights in scene

Reimplemented from GlsRenderEffect.

void Effect_DiffNormSpecRefl::SetUseVertexColor ( bool  value)
private
void Effect_DiffNormSpecRefl::TextureUVWSettingsChanged ( )
private
bool Effect_DiffNormSpecRefl::UsesTextureTransforms ( )
private

The documentation for this class was generated from the following file: