TeaPacket v0.0.1
Multiplatform Game Engine
Loading...
Searching...
No Matches
Model.hpp
Go to the documentation of this file.
1#pragma once
2#include "Platform/Graphics/PlatformModel.hpp"
3
4#include <vector>
5
6
8{
9
10 struct ShaderVariableType;
11
13 class Model
14 {
15 public:
17 PlatformModel platformModel;
18
24 void Initialize(const std::vector<char>& vertexData, const std::vector<unsigned long>& indices, const std::vector<ShaderVariableType>& vertexAttributes);
26 void Render();
27 private:
28 void Pl_Initialize(const std::vector<char>& vertexData, const std::vector<unsigned long>& indices, const std::vector<ShaderVariableType>& vertexAttributes);
29 void Pl_Render();
30 public:
32 static Model CreateModel(const std::vector<char>& vertexData, const std::vector<unsigned long>& indices, const std::vector<ShaderVariableType>& vertexAttributes);
33 private:
34 };
35
36}
Represents a piece of render-able geometry.
Definition Model.hpp:14
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.
PlatformModel platformModel
Platform data.
Definition Model.hpp:17
void Initialize(const std::vector< char > &vertexData, const std::vector< unsigned long > &indices, const std::vector< ShaderVariableType > &vertexAttributes)
Functionality relating to drawing graphics to the screen.
Definition Display.hpp:9
Represents a variable within a shader.
Definition ShaderVariable.hpp:36