Go to the documentation of this file.
25 int strpre(
const char *pre,
const char *str);
29 const char *
get_arg(
int n,
int argc,
char *argv[]);
36 const char *
get_opt(
int n,
int argc,
char *argv[],
37 double *value = NULL,
double default_value = 0);
41 void log_text(
const char *format, ...);
const char * get_arg(int n, int argc, char *argv[])
retrieve the n-th argument from the command line arguments
Definition: util.cpp:49
void log_vec3(const Vec3 &v)
print 3D vector to log overlay
Definition: util.cpp:150
int strpre(const char *pre, const char *str)
check if a string starts with a prefix
Definition: util.cpp:43
void log_text(const char *format,...)
print log text in overlay
Definition: util.cpp:98
float rnd()
generate a random float number in the range [0,1[
Definition: util.cpp:21
3D vector type
Definition: math2d.h:14
void log_float(float v)
print float value to log overlay
Definition: util.cpp:138
2D vector type
Definition: math2d.h:7
void log_clear()
clear log overlay
Definition: util.cpp:167
void msleep(float ms)
sleep for a period of time given in milli seconds
Definition: util.cpp:14
3D matrix type
Definition: math2d.h:22
void log_mat3(const Mat3 &m)
print 3x3 matrix to log overlay
Definition: util.cpp:156
const char * get_opt(int n, int argc, char *argv[], double *value=NULL, double default_value=0)
retrieve the n-th option from the command line arguments
Definition: util.cpp:65
bool is_repeating(float time, float period, float percent=50)
check for a repeating time period
Definition: util.cpp:35
void log_vec2(const Vec2 &v)
print 2D vector to log overlay
Definition: util.cpp:144