Michaël Lemaire
b15b6c7d80
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@370 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#ifndef _PAYSAGES_ZONE_H_
|
|
#define _PAYSAGES_ZONE_H_
|
|
|
|
#include "shared/types.h"
|
|
#include "curve.h"
|
|
#include "pack.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Zone Zone;
|
|
|
|
Zone* zoneCreate();
|
|
void zoneDelete(Zone* zone);
|
|
void zoneSave(PackStream* stream, Zone* zone);
|
|
void zoneLoad(PackStream* stream, Zone* zone);
|
|
void zoneCopy(Zone* source, Zone* destination);
|
|
void zoneIncludeCircleArea(Zone* zone, double value, double centerx, double centerz, double softradius, double hardradius);
|
|
void zoneExcludeCircleArea(Zone* zone, double centerx, double centerz, double softradius, double hardradius);
|
|
|
|
void zoneGetHeightCurve(Zone* zone, Curve* curve);
|
|
void zoneSetHeightCurve(Zone* zone, Curve* curve);
|
|
void zoneAddHeightRangeQuick(Zone* zone, double value, double hardmin, double softmin, double softmax, double hardmax);
|
|
|
|
void zoneGetSlopeCurve(Zone* zone, Curve* curve);
|
|
void zoneSetSlopeCurve(Zone* zone, Curve* curve);
|
|
void zoneAddSlopeRangeQuick(Zone* zone, double value, double hardmin, double softmin, double softmax, double hardmax);
|
|
|
|
double zoneGetValue(Zone* zone, Vector3 location, Vector3 normal);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|