altEngine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
IsoSphere Class Reference

#include <isosphere.h>

Collaboration diagram for IsoSphere:
Collaboration graph
[legend]

Public Member Functions

 IsoSphere ()
 
int load (Graphics &gfx, char *texture_str, char *heightmap, int depth, float scale)
 
void drawTriangle (const vec3 &v1, const vec3 &v2, const vec3 &v3, float scale, unsigned char *image, int width, int height)
 
void subdivide (const vec3 &v1, const vec3 &v2, const vec3 &v3, int depth, float scale, unsigned char *image, int width, int height)
 
void generate (int depth, float scale, unsigned char *image, int width, int height)
 
void render (Graphics &gfx)
 
void destroy (Graphics &gfx)
 

Private Attributes

bool loaded
 
vertex_tvertex_array
 
unsigned int * index_array
 
unsigned int num_vert
 
unsigned int num_index
 
int iso_tex
 
int ibo
 
int vbo
 

Constructor & Destructor Documentation

IsoSphere::IsoSphere ( )

Member Function Documentation

void IsoSphere::destroy ( Graphics gfx)

Here is the call graph for this function:

void IsoSphere::drawTriangle ( const vec3 v1,
const vec3 v2,
const vec3 v3,
float  scale,
unsigned char *  image,
int  width,
int  height 
)

Here is the caller graph for this function:

void IsoSphere::generate ( int  depth,
float  scale,
unsigned char *  image,
int  width,
int  height 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int IsoSphere::load ( Graphics gfx,
char *  texture_str,
char *  heightmap,
int  depth,
float  scale 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void IsoSphere::render ( Graphics gfx)

Here is the call graph for this function:

Here is the caller graph for this function:

void IsoSphere::subdivide ( const vec3 v1,
const vec3 v2,
const vec3 v3,
int  depth,
float  scale,
unsigned char *  image,
int  width,
int  height 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int IsoSphere::ibo
private
unsigned int* IsoSphere::index_array
private
int IsoSphere::iso_tex
private
bool IsoSphere::loaded
private
unsigned int IsoSphere::num_index
private
unsigned int IsoSphere::num_vert
private
int IsoSphere::vbo
private
vertex_t* IsoSphere::vertex_array
private

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