Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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.


Field Summary
private InstancingModelRendererInternals* m
          
 
Constructor Summary
InstancingModelRenderer( bool colorIsDiffuseOnly )
          InstancingModelRenderer: Constructor.
~InstancingModelRenderer()
          
 
Method Summary
 void BeginPass( uint streamflags, const CMatrix3D* texturematrix )
          
 void* CreateModelData( CModel* model )
          
 void DestroyModelData( CModel* UNUSED( model ), void* UNUSED( data ) )
          
 void EndPass( uint streamflags )
          
 static bool IsAvailable()
          IsAvailable: Determines whether this model renderer can be used given the OpenGL implementation specific limits.
 void PrepareModelDef( uint streamflags, CModelDefPtr def )
          
 void RenderModel( uint streamflags, CModel* model, void* UNUSED( data ) )
          
 void UpdateModelData( CModel* UNUSED( model ), void* UNUSED( data ), u32 UNUSED( updateflags ) )
          
   
Methods inherited from class ModelVertexRenderer
CreateModelData, UpdateModelData, DestroyModelData, BeginPass, EndPass, PrepareModelDef, RenderModel
 

Field Detail

m

private InstancingModelRendererInternals* m;


Constructor Detail

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();


Method Detail

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 ) );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD