paysages3d/lib_paysages/terrain/private.h
2013-01-10 21:21:56 +00:00

32 lines
754 B
C

#ifndef _PAYSAGES_TERRAIN_PRIVATE_H_
#define _PAYSAGES_TERRAIN_PRIVATE_H_
#include "public.h"
#define TERRAIN_HEIGHTMAP_DETAIL 0.1
typedef struct
{
int xstart;
int ystart;
int xsize;
int ysize;
double* data;
} TerrainHeightMapData;
struct TerrainHeightMap
{
int fixed_count;
TerrainHeightMapData* fixed_data;
int floating_used;
TerrainHeightMapData floating_data;
};
TerrainHeightMap* terrainHeightMapCreate();
void terrainHeightmapDelete(TerrainHeightMap* heightmap);
void terrainHeightmapCopy(TerrainHeightMap* source, TerrainHeightMap* destination);
void terrainHeightmapSave(PackStream* stream, TerrainHeightMap* heightmap);
void terrainHeightmapLoad(PackStream* stream, TerrainHeightMap* heightmap);
#endif