nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
ModelBuilder Class Referenceabstract

A factory for model meshes. More...

#include <model_builder.h>

Inheritance diagram for ModelBuilder:

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

Detailed Description

A factory for model meshes.

Member Function Documentation

◆ GetVertexCount()

virtual uint32_t ModelBuilder::GetVertexCount ( ) const
pure virtual

◆ PopulateVertexBuffer() [1/2]

void ModelBuilder::PopulateVertexBuffer ( const std::shared_ptr< VertexBuffer > &  vertices)
virtual

Populates the given VertexBuffer with model data.

Reimplemented in SolidColorModelBuilder.

◆ PopulateVertexBuffer() [2/2]

void ModelBuilder::PopulateVertexBuffer ( const std::shared_ptr< VertexBuffer > &  vertices,
const float *  transformation 
)
virtual

Reimplemented in SolidColorModelBuilder.


The documentation for this class was generated from the following files: