28 #ifndef WINTERMUTE_UTILS_H 29 #define WINTERMUTE_UTILS_H 31 #include "engines/wintermute/wintypes.h" 39 static void swap(
int *a,
int *b);
40 static float normalizeAngle(
float angle);
42 static void createPath(
const char *path,
bool pathOnly =
false);
44 static void debugMessage(
const char *text);
45 static char *setString(
char **
string,
const char *value);
47 static char *strEntry(
int entry,
const char *str,
const char delim =
',');
49 static int randomInt(
int from,
int to);
50 static float randomFloat(
float from,
float to);
51 static float randomAngle(
float from,
float to);
53 static bool matchesPattern(
const char *pattern,
const char *
string);
55 static void RGBtoHSL(uint32 rgbColor, byte *outH, byte *outS, byte *outL);
56 static uint32 HSLtoRGB(byte H, byte S, byte L);
59 static float Hue2RGB(
float v1,
float v2,
float vH);
62 void qsort_msvc(
void *base, uint32 nmemb, uint32 size,
63 int (*compare)(
const void *,
const void *));
Definition: achievements_tables.h:27