Builder for untextured models. More...
#include <model_builder.h>
Public Member Functions | |
SolidColorModelBuilder (const vector_t &diffuse, const vector_t &specular) | |
SolidColorModelBuilder (const vector_t &diffuse, const vector_t &specular, const vector_t &back_diffuse, const vector_t &back_specular) | |
void | PopulateVertexBuffer (const std::shared_ptr< VertexBuffer > &vertices) override |
Populates the given VertexBuffer with model data. | |
void | PopulateVertexBuffer (const std::shared_ptr< VertexBuffer > &vertices, const float *transformation) override |
Populates the given VertexBuffer with transformed model data. | |
![]() | |
virtual uint32_t | GetVertexCount () const =0 |
Returns the number of kPositions required to hold the model. | |
Additional Inherited Members | |
![]() | |
virtual const float * | GetVertexPositions ()=0 |
virtual const float * | GetVertexNormals ()=0 |
virtual void | ReleaseData () |
Builder for untextured models.
|
overridevirtual |
Populates the given VertexBuffer with model data.
Reimplemented from ModelBuilder.
|
overridevirtual |
Populates the given VertexBuffer with transformed model data.
Reimplemented from ModelBuilder.