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-06-15 09:31:11 +00:00
|
|
|
float toolsRandom();
|
|
|
|
float toolsBicubicInterpolate(float stencil[16], float x, float y);
|
|
|
|
void toolsFloat2DMapCopy(float* src, float* 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-15 09:31:11 +00:00
|
|
|
float toolsGetDistance2D(float x1, float y1, float x2, float 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
|