TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
TeaPacket::Graphics::Model Class Reference

Represents a piece of render-able geometry. More...

#include <Model.hpp>

Public Member Functions

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 Public Member Functions

static Model CreateModel (const std::vector< char > &vertexData, const std::vector< unsigned long > &indices, const std::vector< ShaderVariableType > &vertexAttributes)
 Create and initialize a model.
 

Public Attributes

PlatformModel platformModel
 Platform data.
 

Detailed Description

Represents a piece of render-able geometry.

Member Function Documentation

◆ 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
vertexDataA chunk of bytes representing each vertex. vertexAttributes is used to interpret that data.
indicesThe indices for this mesh. Indices connect the vertices to create faces.
vertexAttributesA 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.

Member Data Documentation

◆ platformModel

PlatformModel TeaPacket::Graphics::Model::platformModel

Platform data.


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