49 struct platform_state;
63 struct kwindow_platform_state;
384 const char* file_path,
387 void* watcher_written_context,
389 void* watcher_deleted_context,
This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
signed char i8
Signed 8-bit integer.
Definition: defines.h:33
_Bool b8
8-bit boolean type
Definition: defines.h:58
float f32
32-bit floating point number
Definition: defines.h:47
double f64
64-bit floating point number
Definition: defines.h:50
signed int i32
Signed 32-bit integer.
Definition: defines.h:39
unsigned short u16
Unsigned 16-bit integer.
Definition: defines.h:22
signed short i16
Signed 16-bit integer.
Definition: defines.h:36
unsigned long long u64
Unsigned 64-bit integer.
Definition: defines.h:28
This file contains structures and logic pertaining to the logging system.
log_level
Represents levels of logging.
Definition: logger.h:33
Definition: platform.h:25
void * pfn
Definition: platform.h:27
const char * name
Definition: platform.h:26
Definition: platform.h:30
dynamic_library_function * functions
Definition: platform.h:38
const char * filename
Definition: platform.h:32
const char * name
Definition: platform.h:31
void * internal_data
Definition: platform.h:34
u64 internal_data_size
Definition: platform.h:33
u32 watch_id
Definition: platform.h:35
A configuration structure used to create new windows.
Definition: platform.h:54
i32 position_y
Definition: platform.h:56
const char * title
Definition: platform.h:59
u32 width
Definition: platform.h:57
const char * name
Definition: platform.h:60
u32 height
Definition: platform.h:58
i32 position_x
Definition: platform.h:55
The internal state of a window for the renderer frontend.
Definition: renderer_types.h:255
Represents a window in the application.
Definition: platform.h:69
f32 device_pixel_ratio
Represents the pixel density of this window. Should only ever be read from, as the platform layer is ...
Definition: platform.h:84
u16 height
The height of the window in pixels.
Definition: platform.h:78
u16 width
The width of the window in pixels.
Definition: platform.h:76
u16 frames_since_resize
Indicates the number of frames that have passed since the last resize event.
Definition: platform.h:89
const char * title
The title of the window.
Definition: platform.h:73
struct kwindow_renderer_state * renderer_state
Holds renderer-specific data.
Definition: platform.h:95
const char * name
The internal name of the window.
Definition: platform.h:71
b8 resizing
Indicates if this window is currently being resized.
Definition: platform.h:87
struct kwindow_platform_state * platform_state
Holds platform-specific data.
Definition: platform.h:92