Kohi Game Engine
kwindow Struct Reference

Represents a window in the application. More...

#include <platform.h>

Data Fields

const char * name
 The internal name of the window. More...
 
const char * title
 The title of the window. More...
 
u16 width
 The width of the window in pixels. More...
 
u16 height
 The height of the window in pixels. More...
 
f32 device_pixel_ratio
 Represents the pixel density of this window. Should only ever be read from, as the platform layer is responsible for determining this. More...
 
b8 resizing
 Indicates if this window is currently being resized. More...
 
u16 frames_since_resize
 Indicates the number of frames that have passed since the last resize event. More...
 
struct kwindow_platform_state * platform_state
 Holds platform-specific data. More...
 
struct kwindow_renderer_staterenderer_state
 Holds renderer-specific data. More...
 

Detailed Description

Represents a window in the application.

Field Documentation

◆ device_pixel_ratio

f32 device_pixel_ratio

Represents the pixel density of this window. Should only ever be read from, as the platform layer is responsible for determining this.

◆ frames_since_resize

u16 frames_since_resize

Indicates the number of frames that have passed since the last resize event.

◆ height

u16 height

The height of the window in pixels.

◆ name

const char* name

The internal name of the window.

◆ platform_state

struct kwindow_platform_state* platform_state

Holds platform-specific data.

◆ renderer_state

struct kwindow_renderer_state* renderer_state

Holds renderer-specific data.

◆ resizing

b8 resizing

Indicates if this window is currently being resized.

◆ title

const char* title

The title of the window.

◆ width

u16 width

The width of the window in pixels.


The documentation for this struct was generated from the following file: