2009-06-06 12:02:18 +00:00
|
|
|
module terrain.bindings;
|
|
|
|
|
|
|
|
alias void *SceneNode;
|
|
|
|
alias void *Bounds;
|
|
|
|
alias void *MeshObj;
|
|
|
|
|
2009-06-22 10:06:24 +00:00
|
|
|
// These are all defined in cpp_terrain.cpp:
|
2009-06-06 12:02:18 +00:00
|
|
|
extern(C):
|
|
|
|
|
|
|
|
SceneNode terr_createChildNode(float relX, float relY, SceneNode);
|
|
|
|
void terr_destroyNode(SceneNode);
|
2009-06-08 12:59:00 +00:00
|
|
|
Bounds terr_makeBounds(float minHeight, float maxHeight, float width, SceneNode);
|
|
|
|
void terr_killBounds(Bounds);
|
2009-06-06 12:02:18 +00:00
|
|
|
float terr_getSqCamDist(Bounds);
|
2009-06-08 12:59:00 +00:00
|
|
|
MeshObj terr_makeMesh(SceneNode,void*,int,float);
|
2009-06-06 12:02:18 +00:00
|
|
|
void terr_killMesh(MeshObj);
|
|
|
|
|
|
|
|
void terr_genData();
|
|
|
|
void terr_setupRendering();
|
2009-06-22 10:06:24 +00:00
|
|
|
|
|
|
|
void terr_makeLandMaterial(char*,float);
|
|
|
|
ubyte *terr_makeAlphaLayer(char*,int);
|
|
|
|
void terr_closeAlpha(char*,char*,float);
|
|
|
|
void terr_cleanupAlpha(char*,void*,int);
|
|
|
|
|
|
|
|
void terr_resize(void*,void*,int,int);
|
|
|
|
void terr_saveImage(void*,int,char*);
|