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
|
2012-08-08 13:30:40 +00:00
|
|
|
|
|
|
|
#define UNUSED(_x_) ((void)(_x_))
|
2012-01-29 17:39:56 +00:00
|
|
|
|
2012-06-17 09:40:40 +00:00
|
|
|
double toolsRandom();
|
2012-08-28 21:13:35 +00:00
|
|
|
double toolsCubicInterpolate(double stencil[4], double x);
|
2012-06-17 09:40:40 +00:00
|
|
|
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);
|
2012-01-29 17:39:56 +00:00
|
|
|
Vector3 toolsGetNormalFromTriangle(Vector3 center, Vector3 bottom, Vector3 right);
|
2012-06-17 09:40:40 +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
|