Michaël Lemaire
daf3002297
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@383 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
#ifndef _PAYSAGES_VEGETATION_H_
|
|
#define _PAYSAGES_VEGETATION_H_
|
|
|
|
#include "pack.h"
|
|
#include "zone.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define VEGETATION_MAX_LAYERS 50
|
|
|
|
typedef struct
|
|
{
|
|
Zone* zone;
|
|
double max_height;
|
|
} VegetationLayerDefinition;
|
|
|
|
typedef struct VegetationDefinition VegetationDefinition;
|
|
|
|
void vegetationSave(PackStream* stream, VegetationDefinition* definition);
|
|
void vegetationLoad(PackStream* stream, VegetationDefinition* definition);
|
|
|
|
VegetationDefinition* vegetationCreateDefinition();
|
|
void vegetationDeleteDefinition(VegetationDefinition* definition);
|
|
void vegetationCopyDefinition(VegetationDefinition* source, VegetationDefinition* destination);
|
|
void vegetationValidateDefinition(VegetationDefinition* definition);
|
|
|
|
VegetationLayerDefinition vegetationLayerCreateDefinition();
|
|
void vegetationLayerDeleteDefinition(VegetationLayerDefinition* definition);
|
|
void vegetationLayerCopyDefinition(VegetationLayerDefinition* source, VegetationLayerDefinition* destination);
|
|
void vegetationLayerValidateDefinition(VegetationLayerDefinition* definition);
|
|
|
|
int vegetationGetLayerCount(VegetationDefinition* definition);
|
|
int vegetationGetLayer(VegetationDefinition* definition, int position, VegetationLayerDefinition* layer);
|
|
int vegetationSetLayer(VegetationDefinition* definition, int position, VegetationLayerDefinition* layer);
|
|
int vegetationAddLayer(VegetationDefinition* definition);
|
|
void vegetationDeleteLayer(VegetationDefinition* definition, int layer);
|
|
|
|
/*double vegetationGetLayerCoverage(TextureLayerDefinition* definition, Renderer* renderer, Vector3 location, double detail);*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|