GL Studio C++ Runtime API
Effect_DirectXShader Class Reference

#include <effect_directx_shader.h>

Inheritance diagram for Effect_DirectXShader:
GlsRenderEffect VertexAttribIndexLookup

Public Member Functions

 Effect_DirectXShader (const Effect_DirectXShader &)
 
virtual GLint GetVertexAttribIndexForSemantic (int semanticEnum)
 
virtual void AddRef ()
 
virtual void CleanupEffect ()
 Remove the effect trom the OpenGL state.
 
virtual int Compare (const GlsRenderEffect *) const
 
virtual GlsRenderEffectClone () const
 
- Public Member Functions inherited from GlsRenderEffect
virtual void SetupEffect (DynamicArray< Material > &materialPalette, TexturePalette *texturePalette, const TextureSettings &textureSettings, float *viewToWorld3x3, unsigned int maxLightNum, unsigned int activeLightMask)=0
 
bool Equals (const GlsRenderEffect *other) const
 
virtual void GetReferencedMaterials (ReferencedMaterialArray &referencedMaterials)
 
virtual void GetReferencedTextures (ReferencedTextureArray &referencedTextures)
 

Protected Attributes

unsigned int _ref_count
 Reference count.
 
unsigned int _materialIndex
 The material index to use.
 
Effect_DiffNormSpecRefl_helperEffect
 

Detailed Description

Render effect that supports DirectX effect scripts. This will not render anything special in the Editor or in the GLStudio 4 rungime; it only holds the effect configuration for processing by the Lumen converter/generator.

Constructor & Destructor Documentation

Assignment operator

Member Function Documentation

virtual void AddRef ( )
virtual

Manage references to the effect

Implements GlsRenderEffect.

virtual GlsRenderEffect* Clone ( ) const
virtual

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

Implements GlsRenderEffect.

virtual int Compare ( const GlsRenderEffect other) const
virtual

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.

Implements GlsRenderEffect.

virtual GLint GetVertexAttribIndexForSemantic ( int  semanticEnum)
virtual
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.

Member Data Documentation

Effect_DiffNormSpecRefl* _helperEffect
protected

Used for rendering the object in the editor; we'll just set up a basic grey


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