renderer
Class InstancingModelRenderer
ModelVertexRenderer
|
+--InstancingModelRenderer
in InstancingModelRenderer.h
in InstancingModelRenderer.cpp
- class InstancingModelRenderer
- extends ModelVertexRenderer
Class InstancingModelRenderer: Render non-animated (but potentially
moving models) using vertex shaders and minimal state changes.
m
private InstancingModelRendererInternals* m;
InstancingModelRenderer
public InstancingModelRenderer( bool colorIsDiffuseOnly );
- InstancingModelRenderer: Constructor.
- Parameters:
colorIsDiffuseOnly
- if true, the primary color sent to the fragment stage
contains only the diffuse term, and not the ambient
~InstancingModelRenderer
public ~InstancingModelRenderer();
BeginPass
public void BeginPass( uint streamflags, const CMatrix3D* texturematrix );
CreateModelData
public void* CreateModelData( CModel* model );
DestroyModelData
public void DestroyModelData( CModel* UNUSED( model ), void* UNUSED( data ) );
EndPass
public void EndPass( uint streamflags );
IsAvailable
public static bool IsAvailable();
- IsAvailable: Determines whether this model renderer can be used
given the OpenGL implementation specific limits.
- Returns:
- true if the OpenGL implementation can support this
model renderer.
PrepareModelDef
public void PrepareModelDef( uint streamflags, CModelDefPtr def );
RenderModel
public void RenderModel( uint streamflags, CModel* model, void* UNUSED( data ) );
UpdateModelData
public void UpdateModelData( CModel* UNUSED( model ), void* UNUSED( data ), u32 UNUSED( updateflags ) );