OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TessellatedMesh Class Reference

#include <mesh.hpp>

Inheritance diagram for TessellatedMesh:
Mesh

Public Member Functions

 TessellatedMesh ()
 
void render (const RenderInfo &info) override
 
- Public Member Functions inherited from Mesh
void dispose ()
 
void bind ()
 
virtual ~Mesh ()
 
void dispose ()
 
void bind ()
 

Private Member Functions

void init_vao ()
 

Private Attributes

unsigned num_vertices
 

Static Private Attributes

static constexpr float patch_size = 32.0f
 
static constexpr float lod0_distance = 50.0f
 
static constexpr unsigned blocks_x = 64
 
static constexpr unsigned blocks_z = 64
 

Additional Inherited Members

- Public Attributes inherited from Mesh
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 inherited from Mesh
 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 inherited from Mesh
GLuint prog = 0
 
GLuint vao = 0
 
GLuint vbo = 0
 
GLuint ibo = 0
 

Detailed Description

Definition at line 179 of file mesh.hpp.

Constructor & Destructor Documentation

TessellatedMesh::TessellatedMesh ( )

Definition at line 434 of file mesh.cpp.

Member Function Documentation

void TessellatedMesh::init_vao ( )
private

Definition at line 440 of file mesh.cpp.

void TessellatedMesh::render ( const RenderInfo info)
overridevirtual

Implements Mesh.

Definition at line 475 of file mesh.cpp.

Member Data Documentation

constexpr unsigned TessellatedMesh::blocks_x = 64
staticprivate

Definition at line 192 of file mesh.hpp.

constexpr unsigned TessellatedMesh::blocks_z = 64
staticprivate

Definition at line 193 of file mesh.hpp.

constexpr float TessellatedMesh::lod0_distance = 50.0f
staticprivate

Definition at line 190 of file mesh.hpp.

unsigned TessellatedMesh::num_vertices
private

Definition at line 187 of file mesh.hpp.

constexpr float TessellatedMesh::patch_size = 32.0f
staticprivate

Definition at line 189 of file mesh.hpp.


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