Kore 3
Loading...
Searching...
No Matches
display.h
Go to the documentation of this file.
1#ifndef KORE_DISPLAY_HEADER
2#define KORE_DISPLAY_HEADER
3
4#include <kore3/global.h>
5
6#include <stdbool.h>
7
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct kore_display_mode {
17 int x;
18 int y;
19 int width;
20 int height;
21 int useable_width;
22 int useable_height;
23 int pixels_per_inch;
24 int frequency;
25 int bits_per_pixel;
27
31KORE_FUNC void kore_display_init(void);
32
37KORE_FUNC int kore_primary_display(void);
38
46KORE_FUNC int kore_count_displays(void);
47
56KORE_FUNC bool kore_display_available(int display_index);
57
63KORE_FUNC const char *kore_display_name(int display_index);
64
70KORE_FUNC kore_display_mode kore_display_current_mode(int display_index);
71
77KORE_FUNC int kore_display_count_available_modes(int display_index);
78
85KORE_FUNC kore_display_mode kore_display_available_mode(int display_index, int mode_index);
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
KORE_FUNC kore_display_mode kore_display_current_mode(int display_index)
Retrieves the current mode of a display.
KORE_FUNC const char * kore_display_name(int display_index)
Retrieves the system name of a display.
KORE_FUNC int kore_display_count_available_modes(int display_index)
Retrieves the number of available modes of a display.
KORE_FUNC int kore_primary_display(void)
Retrieves the index of the primary display.
KORE_FUNC void kore_display_init(void)
Allows retrieval of display values prior to the kore_init call.
KORE_FUNC bool kore_display_available(int display_index)
Checks whether the display index points to an available display.
KORE_FUNC kore_display_mode kore_display_available_mode(int display_index, int mode_index)
Retrieves a specific mode of a display.
KORE_FUNC int kore_count_displays(void)
Retrieves the number of displays connected to the system.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Definition display.h:16