1#ifndef KORE_WINDOW_HEADER
2#define KORE_WINDOW_HEADER
22 int samples_per_pixel;
26 KORE_WINDOW_MODE_WINDOW,
27 KORE_WINDOW_MODE_FULLSCREEN,
28 KORE_WINDOW_MODE_EXCLUSIVE_FULLSCREEN
31#define KORE_WINDOW_FEATURE_RESIZEABLE 1
32#define KORE_WINDOW_FEATURE_MINIMIZABLE 2
33#define KORE_WINDOW_FEATURE_MAXIMIZABLE 4
34#define KORE_WINDOW_FEATURE_BORDERLESS 8
35#define KORE_WINDOW_FEATURE_ON_TOP 16
48 kore_window_mode mode;
170void kore_internal_call_resize_callback(
int window,
int width,
int height);
171void kore_internal_call_ppi_changed_callback(
int window,
int ppi);
172bool kore_internal_call_close_callback(
int window);
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KORE_FUNC kore_window_mode kore_window_get_mode(int window)
Returns the current window-mode.
KORE_FUNC void kore_window_change_features(int window, int features)
Applies an or-ed combination of KORE_WINDOW_FEATURE values.
KORE_FUNC void kore_window_destroy(int window)
Closes and destroys a window.
KORE_FUNC void kore_window_move(int window, int x, int y)
Moves a window.
KORE_FUNC void kore_window_hide(int window)
Hides a window.
KORE_FUNC void kore_window_set_ppi_changed_callback(int window, void(*callback)(int ppi, void *data), void *data)
Sets a PPI callback that's called whenever the window moves to a display that uses a different PPI-se...
KORE_FUNC void kore_window_show(int window)
Makes the window visible.
KORE_FUNC void kore_window_resize(int window, int width, int height)
Resizes a window.
KORE_FUNC void kore_window_change_framebuffer(int window, kore_framebuffer_parameters *frame)
Changes the framebuffer-options of a window.
KORE_FUNC void kore_window_set_close_callback(int window, bool(*callback)(void *data), void *data)
Sets a close callback that's called when the window is about to close. Returning false from the callb...
KORE_FUNC int kore_window_display(int window)
Returns the id of the display the window currently is on.
KORE_FUNC void kore_window_change_mode(int window, kore_window_mode mode)
Switches between window and fullscreen-modes.
KORE_FUNC void kore_window_set_resize_callback(int window, void(*callback)(int x, int y, void *data), void *data)
Sets a resize callback that's called whenever the window is resized.
KORE_FUNC int kore_count_windows(void)
Counts all windows the program created, including the initial window created by kore_init.
KORE_FUNC bool kore_window_vsynced(int window)
Returns whether the window is vsynced or not.
KORE_FUNC int kore_window_create(kore_window_parameters *win, kore_framebuffer_parameters *frame)
Creates a window.
KORE_FUNC int kore_window_height(int window)
Returns the height of a window.
KORE_FUNC int kore_window_width(int window)
Returns the width of a window.
KORE_FUNC void kore_window_set_title(int window, const char *title)
Sets the title of a window.
KORE_FUNC int kore_window_y(int window)
Returns the y position of a window.
KORE_FUNC int kore_window_x(int window)
Returns the x position of a window.