#include <terrain.h>
|
| Terrain () |
|
int | load (Graphics &gfx, float scale, vec3 &offset, char *heightmap, char *texture_str, bool sphere, int anisotropic) |
|
int | CreateMesh (char *heightmap, float scale_width, float scale_height, vec3 &offset, vertex_t *&vertex, unsigned int *&index, unsigned int &num_vertex, unsigned int &num_index) |
|
void | render (Graphics &gfx) |
|
bool | collision_detect (RigidBody &body) |
|
float | GetHeight (const vec3 &position, vec3 &normal) |
|
void | Smooth (vertex_t *image, int width, int height, vec3 &avg) |
|
int | CreateWater (float scale_width, float scale_height, vertex_t *&vertex, unsigned int *&index, unsigned int &num_vertex, unsigned int &num_index) |
|
void | CreateSphere (char *heightmap, float radius, vec3 &offset, vertex_t *&vertex, unsigned int *&index, unsigned int &num_vertex, unsigned int &num_index) |
|
bool Terrain::collision_detect |
( |
RigidBody & |
body | ) |
|
int Terrain::CreateMesh |
( |
char * |
heightmap, |
|
|
float |
scale_width, |
|
|
float |
scale_height, |
|
|
vec3 & |
offset, |
|
|
vertex_t *& |
vertex, |
|
|
unsigned int *& |
index, |
|
|
unsigned int & |
num_vertex, |
|
|
unsigned int & |
num_index |
|
) |
| |
void Terrain::CreateSphere |
( |
char * |
heightmap, |
|
|
float |
radius, |
|
|
vec3 & |
offset, |
|
|
vertex_t *& |
vertex, |
|
|
unsigned int *& |
index, |
|
|
unsigned int & |
num_vertex, |
|
|
unsigned int & |
num_index |
|
) |
| |
int Terrain::CreateWater |
( |
float |
scale_width, |
|
|
float |
scale_height, |
|
|
vertex_t *& |
vertex, |
|
|
unsigned int *& |
index, |
|
|
unsigned int & |
num_vertex, |
|
|
unsigned int & |
num_index |
|
) |
| |
float Terrain::GetHeight |
( |
const vec3 & |
position, |
|
|
vec3 & |
normal |
|
) |
| |
int Terrain::load |
( |
Graphics & |
gfx, |
|
|
float |
scale, |
|
|
vec3 & |
offset, |
|
|
char * |
heightmap, |
|
|
char * |
texture_str, |
|
|
bool |
sphere, |
|
|
int |
anisotropic |
|
) |
| |
void Terrain::Smooth |
( |
vertex_t * |
image, |
|
|
int |
width, |
|
|
int |
height, |
|
|
vec3 & |
avg |
|
) |
| |
unsigned int* Terrain::index_array |
|
private |
unsigned int Terrain::num_index |
|
private |
unsigned int Terrain::num_vertex |
|
private |
unsigned int* Terrain::water_index |
|
private |
unsigned int Terrain::water_nindex |
|
private |
unsigned int Terrain::water_nvertex |
|
private |
The documentation for this class was generated from the following files: