OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Mesh Struct Referenceabstract

#include <primitives.h>

Inheritance diagram for Mesh:
MorphedGeoMipMapMesh TessellatedMesh

Classes

struct  RenderInfo
 

Public Member Functions

void dispose ()
 
void bind ()
 
virtual ~Mesh ()
 
virtual void render (const RenderInfo &info)=0
 
void dispose ()
 
void bind ()
 

Public Attributes

GLuint vertex_buffer
 
GLuint index_buffer
 
int num_indices
 
int num_vertices
 
std::vector< Vertexvbo
 
std::vector< uint16_t > ibo
 
AABB aabb
 

Protected Member Functions

 Mesh (const char *vs_shader, const char *fs_shader)
 
 Mesh (const char *vs_shader, const char *tc_shader, const char *te_shader, const char *geom_shader, const char *fs_shader)
 
void bind_textures (const RenderInfo &info)
 

Protected Attributes

GLuint prog = 0
 
GLuint vao = 0
 
GLuint vbo = 0
 
GLuint ibo = 0
 

Detailed Description

Definition at line 26 of file primitives.h.

Constructor & Destructor Documentation

Mesh::~Mesh ( )
virtual

Definition at line 80 of file mesh.cpp.

Mesh::Mesh ( const char *  vs_shader,
const char *  fs_shader 
)
protected

Definition at line 52 of file mesh.cpp.

Mesh::Mesh ( const char *  vs_shader,
const char *  tc_shader,
const char *  te_shader,
const char *  geom_shader,
const char *  fs_shader 
)
protected

Definition at line 65 of file mesh.cpp.

Member Function Documentation

void Mesh::bind ( )

Definition at line 122 of file primitives.cpp.

void Mesh::bind ( )
void Mesh::bind_textures ( const RenderInfo info)
protected

Definition at line 134 of file mesh.cpp.

void Mesh::dispose ( )

Definition at line 116 of file primitives.cpp.

void Mesh::dispose ( )
virtual void Mesh::render ( const RenderInfo info)
pure virtual

Implemented in TessellatedMesh, and MorphedGeoMipMapMesh.

Member Data Documentation

AABB Mesh::aabb

Definition at line 49 of file mesh.hpp.

std::vector<uint16_t> Mesh::ibo

Definition at line 48 of file mesh.hpp.

GLuint Mesh::ibo = 0
protected

Definition at line 82 of file mesh.hpp.

GLuint Mesh::index_buffer

Definition at line 29 of file primitives.h.

int Mesh::num_indices

Definition at line 30 of file primitives.h.

int Mesh::num_vertices

Definition at line 31 of file primitives.h.

GLuint Mesh::prog = 0
protected

Definition at line 79 of file mesh.hpp.

GLuint Mesh::vao = 0
protected

Definition at line 80 of file mesh.hpp.

std::vector<Vertex> Mesh::vbo

Definition at line 47 of file mesh.hpp.

GLuint Mesh::vbo = 0
protected

Definition at line 81 of file mesh.hpp.

GLuint Mesh::vertex_buffer

Definition at line 28 of file primitives.h.


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