This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
_Bool b8
8-bit boolean type
Definition: defines.h:58
float f32
32-bit floating point number
Definition: defines.h:47
signed int i32
Signed 32-bit integer.
Definition: defines.h:39
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
struct kvar_change kvar_change
KAPI b8 kvar_f32_set(const char *name, const char *desc, f32 value)
Attempts to set the value as a float of an existing variable with the given name. Creates if the vari...
KAPI b8 kvar_string_set(const char *name, const char *desc, const char *value)
Attempts to set the value as a string of an existing variable with the given name....
void kvar_system_shutdown(struct kvar_state *state)
Shuts down the KVar system.
kvar_types
Definition: kvar.h:19
@ KVAR_TYPE_INT
Definition: kvar.h:20
@ KVAR_TYPE_FLOAT
Definition: kvar.h:21
@ KVAR_TYPE_STRING
Definition: kvar.h:22
KAPI b8 kvar_i32_get(const char *name, i32 *out_value)
Attempts to obtain a variable value with the given name and return its value as an integer....
KAPI b8 kvar_f32_get(const char *name, f32 *out_value)
Attempts to obtain a variable value with the given name and return its value as a float....
b8 kvar_system_initialize(u64 *memory_requirement, struct kvar_state *memory, void *config)
Initializes the KVar system. KVars are global variables that are dynamically created and set/used wit...
KAPI const char * kvar_string_get(const char *name)
Attempts to obtain a variable value with the given name and return its value as a string....
union kvar_value kvar_value
KAPI b8 kvar_i32_set(const char *name, const char *desc, i32 value)
Attempts to set the value as an integer of an existing variable with the given name....
kvar_types old_type
Definition: kvar.h:33
kvar_value new_value
Definition: kvar.h:35
const char * name
Definition: kvar.h:32
kvar_types new_type
Definition: kvar.h:34
i32 i
Definition: kvar.h:26
char * s
Definition: kvar.h:28
f32 f
Definition: kvar.h:27