27 lines
840 B
C
27 lines
840 B
C
|
#ifndef _PAYSAGES_TOOLS_H_
|
||
|
#define _PAYSAGES_TOOLS_H_
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#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);
|
||
|
void toolsSaveDouble(FILE* f, double* value);
|
||
|
void toolsLoadDouble(FILE* f, double* value);
|
||
|
void toolsSaveInt(FILE* f, int* value);
|
||
|
void toolsLoadInt(FILE* f, int* value);
|
||
|
void materialSave(FILE* f, SurfaceMaterial* material);
|
||
|
void materialLoad(FILE* f, SurfaceMaterial* material);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|