Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/InstancingModelRenderer.h
Show All 39 Lines | public: | ||||
// Implementations | // Implementations | ||||
CModelRData* CreateModelData(const void* key, CModel* model); | CModelRData* CreateModelData(const void* key, CModel* model); | ||||
void UpdateModelData(CModel* model, CModelRData* data, int updateflags); | void UpdateModelData(CModel* model, CModelRData* data, int updateflags); | ||||
void BeginPass(int streamflags); | void BeginPass(int streamflags); | ||||
void EndPass(int streamflags); | void EndPass(int streamflags); | ||||
void PrepareModelDef(const CShaderProgramPtr& shader, int streamflags, const CModelDef& def); | void PrepareModelDef(const CShaderProgramPtr& shader, int streamflags, const CModelDef& def); | ||||
bool CanInstance() { return true; } | |||||
void RenderModel(const CShaderProgramPtr& shader, int streamflags, CModel* model, CModelRData* data); | void RenderModel(const CShaderProgramPtr& shader, int streamflags, CModel* model, CModelRData* data); | ||||
void RenderInstancedModel(const CShaderProgramPtr& shader, const std::vector<CModel*>& model); | |||||
protected: | protected: | ||||
InstancingModelRendererInternals* m; | InstancingModelRendererInternals* m; | ||||
}; | }; | ||||
#endif // INCLUDED_INSTANCINGMODELRENDERER | #endif // INCLUDED_INSTANCINGMODELRENDERER |
Wildfire Games · Phabricator