OpenRaider
0.1.4-dev
Open Source Tomb Raider Game Engine implementation
|
#include <Mesh.h>
Public Member Functions | |
Mesh (const std::vector< glm::vec3 > &vertices, const std::vector< IndexedRectangle > &rectangles, const std::vector< IndexedRectangle > &triangles, const std::vector< IndexedColoredRectangle > &coloredRectangles, const std::vector< IndexedColoredRectangle > &coloredTriangles) | |
void | prepare () |
void | display (glm::mat4 MVP, ShaderTexture *shaderTexture=nullptr) |
Private Attributes | |
std::vector< unsigned short > | indicesBuff |
std::vector< glm::vec3 > | verticesBuff |
std::vector< unsigned int > | texturesBuff |
std::vector< unsigned short > | indicesColorBuff |
std::vector< glm::vec3 > | verticesColorBuff |
std::vector< unsigned int > | colorsBuff |
ShaderBuffer | indices |
ShaderBuffer | vertices |
ShaderBuffer | uvs |
ShaderBuffer | indicesColor |
ShaderBuffer | verticesColor |
ShaderBuffer | colors |
Mesh::Mesh | ( | const std::vector< glm::vec3 > & | vertices, |
const std::vector< IndexedRectangle > & | rectangles, | ||
const std::vector< IndexedRectangle > & | triangles, | ||
const std::vector< IndexedColoredRectangle > & | coloredRectangles, | ||
const std::vector< IndexedColoredRectangle > & | coloredTriangles | ||
) |
void Mesh::display | ( | glm::mat4 | MVP, |
ShaderTexture * | shaderTexture = nullptr |
||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |