A factory for model meshes. More...
#include <model_builder.h>
Public Member Functions | |
virtual uint32_t | GetVertexCount () const =0 |
Returns the number of kPositions required to hold the model. | |
virtual void | PopulateVertexBuffer (const std::shared_ptr< VertexBuffer > &vertices) |
Populates the given VertexBuffer with model data. | |
virtual void | PopulateVertexBuffer (const std::shared_ptr< VertexBuffer > &vertices, const float *transformation) |
Protected Member Functions | |
virtual const float * | GetVertexPositions ()=0 |
virtual const float * | GetVertexNormals ()=0 |
virtual void | ReleaseData () |
A factory for model meshes.
|
pure virtual |
Returns the number of kPositions required to hold the model.
Implemented in FlatMeshGridModel, LightControlTestMeshConeModel, LightControlTestMeshCylinderModel, LightControlTestMeshSphereModel, LightControlTestMeshSuzanneModel, and LightControlTestMeshTorusModel.
|
virtual |
Populates the given VertexBuffer with model data.
Reimplemented in SolidColorModelBuilder.
|
virtual |
Reimplemented in SolidColorModelBuilder.