28 #ifndef WINTERMUTE_UTILS_H 29 #define WINTERMUTE_UTILS_H 31 #include "engines/wintermute/wintypes.h" 32 #include "engines/wintermute/math/rect32.h" 40 static void swap(
int *a,
int *b);
41 static float normalizeAngle(
float angle);
43 static void createPath(
const char *path,
bool pathOnly =
false);
45 static void debugMessage(
const char *text);
46 static char *setString(
char **
string,
const char *value);
48 static char *strEntry(
int entry,
const char *str,
const char delim =
',');
50 static int randomInt(
int from,
int to);
51 static float randomFloat(
float from,
float to);
52 static float randomAngle(
float from,
float to);
54 static bool matchesPattern(
const char *pattern,
const char *
string);
56 static void RGBtoHSL(uint32 rgbColor, byte *outH, byte *outS, byte *outL);
57 static uint32 HSLtoRGB(byte H, byte S, byte L);
60 static float Hue2RGB(
float v1,
float v2,
float vH);
Definition: achievements_tables.h:27