SuperimposeMesh
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Private Attributes | List of all members
Mesh Class Reference

#include <Mesh.h>

Classes

struct  Texture
 
struct  Vertex
 

Public Member Functions

 Mesh (std::vector< Vertex > vertices, std::vector< GLuint > indices, std::vector< Texture > textures)
 
void Draw (Shader shader)
 

Private Attributes

GLuint VAO_
 
GLuint VBO_
 
GLuint EBO_
 
std::vector< Vertexvertices_
 
std::vector< GLuint > indices_
 
std::vector< Texturetextures_
 

Detailed Description

Definition at line 23 of file Mesh.h.

Constructor & Destructor Documentation

◆ Mesh()

Mesh::Mesh ( std::vector< Vertex vertices,
std::vector< GLuint >  indices,
std::vector< Texture textures 
)

Definition at line 18 of file Mesh.cpp.

Member Function Documentation

◆ Draw()

void Mesh::Draw ( Shader  shader)

Definition at line 55 of file Mesh.cpp.

References Shader::get_program(), indices_, textures_, and VAO_.

Here is the call graph for this function:

Member Data Documentation

◆ EBO_

GLuint Mesh::EBO_
private

Definition at line 48 of file Mesh.h.

◆ indices_

std::vector<GLuint> Mesh::indices_
private

Definition at line 52 of file Mesh.h.

Referenced by Draw().

◆ textures_

std::vector<Texture> Mesh::textures_
private

Definition at line 54 of file Mesh.h.

Referenced by Draw().

◆ VAO_

GLuint Mesh::VAO_
private

Definition at line 44 of file Mesh.h.

Referenced by Draw().

◆ VBO_

GLuint Mesh::VBO_
private

Definition at line 46 of file Mesh.h.

◆ vertices_

std::vector<Vertex> Mesh::vertices_
private

Definition at line 50 of file Mesh.h.


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