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

#include <ClipmapApplication.h>

Public Member Functions

 ClipmapApplication (unsigned int size, unsigned int levels, float clip_scale)
 
 ~ClipmapApplication ()
 
void render (unsigned int viewport_width, unsigned int viewport_height)
 

Private Member Functions

GLuint compile_program (const char *vertex_shader_source, const char *fragment_shader_source)
 
GLuint compile_shader (GLenum type, const char *source)
 
std::string load_shader_string (const char *path)
 

Private Attributes

GLuint program
 
GroundMesh mesh
 
Heightmap heightmap
 
GLint mvp_loc
 
GLint camera_pos_loc
 
int frame
 

Detailed Description

Definition at line 31 of file ClipmapApplication.h.

Constructor & Destructor Documentation

ClipmapApplication::ClipmapApplication ( unsigned int  size,
unsigned int  levels,
float  clip_scale 
)

Definition at line 29 of file ClipmapApplication.cpp.

ClipmapApplication::~ClipmapApplication ( )

Definition at line 56 of file ClipmapApplication.cpp.

Member Function Documentation

GLuint ClipmapApplication::compile_program ( const char *  vertex_shader_source,
const char *  fragment_shader_source 
)
private

Definition at line 61 of file ClipmapApplication.cpp.

GLuint ClipmapApplication::compile_shader ( GLenum  type,
const char *  source 
)
private

Definition at line 93 of file ClipmapApplication.cpp.

std::string ClipmapApplication::load_shader_string ( const char *  path)
private
void ClipmapApplication::render ( unsigned int  viewport_width,
unsigned int  viewport_height 
)

Definition at line 120 of file ClipmapApplication.cpp.

Member Data Documentation

GLint ClipmapApplication::camera_pos_loc
private

Definition at line 48 of file ClipmapApplication.h.

int ClipmapApplication::frame
private

Definition at line 49 of file ClipmapApplication.h.

Heightmap ClipmapApplication::heightmap
private

Definition at line 45 of file ClipmapApplication.h.

GroundMesh ClipmapApplication::mesh
private

Definition at line 44 of file ClipmapApplication.h.

GLint ClipmapApplication::mvp_loc
private

Definition at line 47 of file ClipmapApplication.h.

GLuint ClipmapApplication::program
private

Definition at line 39 of file ClipmapApplication.h.


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