OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Attributes | List of all members
Mesh Class Reference

#include <Mesh.h>

Collaboration diagram for Mesh:
[legend]

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
 

Detailed Description

Definition at line 35 of file Mesh.h.

Constructor & Destructor Documentation

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 
)

Definition at line 12 of file Mesh.cpp.

Member Function Documentation

void Mesh::prepare ( )

Definition at line 52 of file Mesh.cpp.

void Mesh::display ( glm::mat4  MVP,
ShaderTexture shaderTexture = nullptr 
)

Definition at line 129 of file Mesh.cpp.

Member Data Documentation

std::vector<unsigned short> Mesh::indicesBuff
private

Definition at line 46 of file Mesh.h.

std::vector<glm::vec3> Mesh::verticesBuff
private

Definition at line 47 of file Mesh.h.

std::vector<unsigned int> Mesh::texturesBuff
private

Definition at line 48 of file Mesh.h.

std::vector<unsigned short> Mesh::indicesColorBuff
private

Definition at line 50 of file Mesh.h.

std::vector<glm::vec3> Mesh::verticesColorBuff
private

Definition at line 51 of file Mesh.h.

std::vector<unsigned int> Mesh::colorsBuff
private

Definition at line 52 of file Mesh.h.

ShaderBuffer Mesh::indices
private

Definition at line 54 of file Mesh.h.

ShaderBuffer Mesh::vertices
private

Definition at line 54 of file Mesh.h.

ShaderBuffer Mesh::uvs
private

Definition at line 54 of file Mesh.h.

ShaderBuffer Mesh::indicesColor
private

Definition at line 55 of file Mesh.h.

ShaderBuffer Mesh::verticesColor
private

Definition at line 55 of file Mesh.h.

ShaderBuffer Mesh::colors
private

Definition at line 55 of file Mesh.h.


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