My Project: openb3dlib.mod/openb3d/src/geosphere.h Source File

My Project

geosphere.h
Go to the documentation of this file.
1 /*
2 * geosphere.h
3 * openb3d
4 *
5 *
6 */
7
8 #ifndef GEOSPHERE_H
9 #define GEOSPHERE_H
10
11 #include "terrain.h"
12
13
14 class Geosphere : public Terrain{
15 private:
16 float dradius;
17 float* NormalsMap;
18 //int* EqToToast;
19 float xcf,ycf,zcf; //used to store camera position
20
21 void TOASTsub(int l, float v0[], float v1[], float v2[]);
22 void geosub(int l, float v0[], float v1[], float v2[]);
23 void c_col_tree_geosub(int l, float v0[], float v1[], float v2[]);
24
25
26 void EquirectangularToTOAST();
27
28
29 public:
30
31 float hsize;
32
33 static Geosphere* CreateGeosphere(int tsize=0, Entity* parent_ent=NULL);
34 static Geosphere* LoadGeosphere(string filename,Entity* parent_ent=NULL);
35 Geosphere* CopyEntity(Entity* parent_ent=NULL);
36 void FreeEntity(void);
37
38 //void TreeCheck(CollisionInfo* ci);
39 void UpdateTerrain();
40 void RecreateGeoROAM();
41 void UpdateNormals(int preserve=0);
42
43 void ModifyGeosphere (int x, int y, float new_height);
44 void TreeCheck(CollisionInfo* ci);
45
46
47 };
48
49
50 #endif
terrain.h
Terrain
Definition: terrain.h:22
Geosphere::CopyEntity
Geosphere * CopyEntity(Entity *parent_ent=NULL)
Definition: geosphere.cpp:46
Geosphere::hsize
float hsize
Definition: geosphere.h:31
Geosphere::RecreateGeoROAM
void RecreateGeoROAM()
Definition: geosphere.cpp:553
Entity
Definition: entity.h:27
Geosphere::CreateGeosphere
static Geosphere * CreateGeosphere(int tsize=0, Entity *parent_ent=NULL)
Definition: geosphere.cpp:151
Geosphere::ModifyGeosphere
void ModifyGeosphere(int x, int y, float new_height)
Definition: geosphere.cpp:912
Geosphere::FreeEntity
void FreeEntity(void)
Definition: geosphere.cpp:1348
CollisionInfo
Definition: collision.h:51
Geosphere::UpdateTerrain
void UpdateTerrain()
Definition: geosphere.cpp:194
Geosphere::LoadGeosphere
static Geosphere * LoadGeosphere(string filename, Entity *parent_ent=NULL)
Definition: geosphere.cpp:1074
NULL
#define NULL
Definition: tree.cpp:4
Terrain::UpdateNormals
void UpdateNormals()
Definition: terrain.cpp:702
Geosphere
Definition: geosphere.h:14
Geosphere::TreeCheck
void TreeCheck(CollisionInfo *ci)
Definition: geosphere.cpp:1154