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

My Project

voxterrain.h
Go to the documentation of this file.
1 #ifndef VOXTERRAIN_H
2 #define VOXTERRAIN_H
3
4 #include "terrain.h"
5 #include "metaball.h"
6
7 class VoxelTerrain : public Terrain{
8
9 private:
10 float ***tbuffer;
11
12 void MarchingCube(float x, float y, float z, float x1, float y1, float z1, float F[8]);
13 float MiddlePoint (float A, float B, float C, float D);
14 void BuildCubeGrid (float x, float y, float z, float l,
15 float f1, float f2, float f3, float f4, float f5, float f6, float f7, float f8);
16
17
18 public:
19
20 static VoxelTerrain* CreateVoxelTerrain(int w=1, int h=1, int d=1, Entity* parent_ent=0);
21 static VoxelTerrain* LoadVoxelTerrain(string filename, Entity* parent_ent=0);
22 VoxelTerrain* CopyEntity(Entity* parent_ent=NULL);
23 void FreeEntity(void);
24
25 void RecreateOctree();
26 void UpdateTerrain();
27
28 void TreeCheck(CollisionInfo* ci);
29
30 };
31
32 #endif
VoxelTerrain::LoadVoxelTerrain
static VoxelTerrain * LoadVoxelTerrain(string filename, Entity *parent_ent=0)
VoxelTerrain::CopyEntity
VoxelTerrain * CopyEntity(Entity *parent_ent=NULL)
terrain.h
Terrain
Definition: terrain.h:22
VoxelTerrain::UpdateTerrain
void UpdateTerrain()
Definition: voxterrain.cpp:79
B
#define B(row, col)
VoxelTerrain::FreeEntity
void FreeEntity(void)
VoxelTerrain
Definition: voxterrain.h:7
Entity
Definition: entity.h:27
VoxelTerrain::CreateVoxelTerrain
static VoxelTerrain * CreateVoxelTerrain(int w=1, int h=1, int d=1, Entity *parent_ent=0)
Definition: voxterrain.cpp:44
VoxelTerrain::RecreateOctree
void RecreateOctree()
Definition: voxterrain.cpp:437
CollisionInfo
Definition: collision.h:51
VoxelTerrain::TreeCheck
void TreeCheck(CollisionInfo *ci)
A
#define A(row, col)
NULL
#define NULL
Definition: tree.cpp:4