nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
LightControlTestMeshConeModel Class Reference
Inheritance diagram for LightControlTestMeshConeModel:
Collaboration diagram for LightControlTestMeshConeModel:

Public Member Functions

 LightControlTestMeshConeModel (const vector_t &diffuse, const vector_t &specular)
 
 LightControlTestMeshConeModel (const vector_t &diffuse, const vector_t &specular, const vector_t &back_diffuse, const vector_t &back_specular)
 
uint32_t GetVertexCount () const override
 Returns the number of kPositions required to hold the model.
 
- Public Member Functions inherited from SolidColorModelBuilder
 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.
 

Protected Member Functions

const float * GetVertexPositions () override
 
const float * GetVertexNormals () override
 
void ReleaseData () override
 

Protected Attributes

float * vertices_ {nullptr}
 
float * normals_ {nullptr}
 
float * texcoords_ {nullptr}
 
- Protected Attributes inherited from SolidColorModelBuilder
vector_t diffuse_ {1.0f, 1.0f, 1.0f, 1.0f}
 
vector_t specular_ {0.0f, 0.0f, 0.0f, 1.0f}
 
vector_t back_diffuse_ {1.0f, 1.0f, 1.0f, 1.0f}
 
vector_t back_specular_ {0.0f, 0.0f, 0.0f, 1.0f}
 

Member Function Documentation

◆ GetVertexCount()

uint32_t LightControlTestMeshConeModel::GetVertexCount ( ) const
overridevirtual

Returns the number of kPositions required to hold the model.

Implements ModelBuilder.

◆ GetVertexNormals()

const float * LightControlTestMeshConeModel::GetVertexNormals ( )
overrideprotectedvirtual

Implements ModelBuilder.

◆ GetVertexPositions()

const float * LightControlTestMeshConeModel::GetVertexPositions ( )
overrideprotectedvirtual

Implements ModelBuilder.

◆ ReleaseData()

void LightControlTestMeshConeModel::ReleaseData ( )
inlineoverrideprotectedvirtual

Reimplemented from ModelBuilder.


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