Represents a piece of render-able geometry.
More...
#include <Model.hpp>
|
void | Initialize (const std::vector< char > &vertexData, const std::vector< unsigned long > &indices, const std::vector< ShaderVariableType > &vertexAttributes) |
|
void | Render () |
| Render the model using the currently bound Shader.
|
|
|
static Model | CreateModel (const std::vector< char > &vertexData, const std::vector< unsigned long > &indices, const std::vector< ShaderVariableType > &vertexAttributes) |
| Create and initialize a model.
|
|
Represents a piece of render-able geometry.
◆ CreateModel()
static Model TeaPacket::Graphics::Model::CreateModel |
( |
const std::vector< char > & | vertexData, |
|
|
const std::vector< unsigned long > & | indices, |
|
|
const std::vector< ShaderVariableType > & | vertexAttributes ) |
|
static |
Create and initialize a model.
◆ Initialize()
void TeaPacket::Graphics::Model::Initialize |
( |
const std::vector< char > & | vertexData, |
|
|
const std::vector< unsigned long > & | indices, |
|
|
const std::vector< ShaderVariableType > & | vertexAttributes ) |
Initialize the model with geometry data
- Parameters
-
vertexData | A chunk of bytes representing each vertex. vertexAttributes is used to interpret that data. |
indices | The indices for this mesh. Indices connect the vertices to create faces. |
vertexAttributes | A list of VertexAttributes that inform TeaPacket how the model should be interpreted. |
◆ Render()
void TeaPacket::Graphics::Model::Render |
( |
| ) |
|
Render the model using the currently bound Shader.
◆ platformModel
PlatformModel TeaPacket::Graphics::Model::platformModel |
The documentation for this class was generated from the following file:
- /github/workspace/include/TeaPacket/Graphics/Model.hpp