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

#include <RoomMesh.h>

Collaboration diagram for RoomMesh:
[legend]

Public Member Functions

 RoomMesh (const std::vector< RoomVertexTR2 > &vertices, const std::vector< IndexedRectangle > &rectangles, const std::vector< IndexedRectangle > &triangles)
 
void prepare ()
 
void display (glm::mat4 MVP)
 

Private Attributes

std::vector< unsigned short > indicesBuff
 
std::vector< glm::vec3 > verticesBuff
 
std::vector< unsigned int > texturesBuff
 
ShaderBuffer indices
 
ShaderBuffer vertices
 
ShaderBuffer uvs
 

Detailed Description

Definition at line 28 of file RoomMesh.h.

Constructor & Destructor Documentation

RoomMesh::RoomMesh ( const std::vector< RoomVertexTR2 > &  vertices,
const std::vector< IndexedRectangle > &  rectangles,
const std::vector< IndexedRectangle > &  triangles 
)

Definition at line 12 of file RoomMesh.cpp.

Member Function Documentation

void RoomMesh::prepare ( )

Definition at line 33 of file RoomMesh.cpp.

void RoomMesh::display ( glm::mat4  MVP)

Definition at line 72 of file RoomMesh.cpp.

Member Data Documentation

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

Definition at line 37 of file RoomMesh.h.

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

Definition at line 38 of file RoomMesh.h.

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

Definition at line 39 of file RoomMesh.h.

ShaderBuffer RoomMesh::indices
private

Definition at line 40 of file RoomMesh.h.

ShaderBuffer RoomMesh::vertices
private

Definition at line 40 of file RoomMesh.h.

ShaderBuffer RoomMesh::uvs
private

Definition at line 40 of file RoomMesh.h.


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