2012-01-29 17:39:56 +00:00
|
|
|
#ifndef _PAYSAGES_TOOLS_H_
|
|
|
|
#define _PAYSAGES_TOOLS_H_
|
|
|
|
|
2012-04-22 17:12:39 +00:00
|
|
|
#include "pack.h"
|
2012-01-29 17:39:56 +00:00
|
|
|
#include "shared/types.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
double toolsRandom();
|
|
|
|
double toolsBicubicInterpolate(double stencil[16], double x, double y);
|
|
|
|
void toolsFloat2DMapCopy(double* src, double* dest, int src_xstart, int src_ystart, int dest_xstart, int dest_ystart, int xsize, int ysize, int src_xstep, int src_ystep, int dest_xstep, int dest_ystep);
|
|
|
|
Vector3 toolsGetNormalFromTriangle(Vector3 center, Vector3 bottom, Vector3 right);
|
2012-03-29 20:19:50 +00:00
|
|
|
double toolsGetDistance2D(double x1, double y1, double x2, double y2);
|
2012-04-22 17:12:39 +00:00
|
|
|
void materialSave(PackStream* stream, SurfaceMaterial* material);
|
|
|
|
void materialLoad(PackStream* stream, SurfaceMaterial* material);
|
2012-01-29 17:39:56 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|