Defines the available screen resolutions for the application. More...
Go to the source code of this file.
Classes | |
struct | Keybinds |
A structure to hold key bindings for various actions in the game. More... | |
struct | Settings |
A structure to hold various settings for the application. More... | |
Enumerations | |
enum | Resolutions { RES_RESPONSIVE , RES_NATIVE , RES_640x480 , RES_800x600 , RES_1024x768 , RES_1280x720 , RES_1280x800 , RES_1280x1024 , RES_1366x768 , RES_1440x900 , RES_1600x900 , RES_1680x1050 , RES_1920x1080 , RES_1920x1200 , RES_2560x1440 , RES_COUNT } |
Enumeration of possible screen resolutions. More... | |
Functions | |
void | get_resolution (int *width, int *height) |
Retrieves the current screen resolution. | |
void | save_settings () |
Saves the application settings to a configuration file. | |
void | load_settings () |
Loads the application settings from a configuration file. | |
Variables | |
const char | resolutionsText [RES_COUNT][256] |
Array of resolution text strings. | |
Defines the available screen resolutions for the application.
enum Resolutions |
Enumeration of possible screen resolutions.
This enumeration defines various screen resolutions that the application can support. It includes both standard resolutions and a responsive option.
void get_resolution | ( | int * | width, |
int * | height | ||
) |
Retrieves the current screen resolution.
This function populates the provided width and height pointers with the current screen resolution values.
[out] | width | Pointer to an integer where the screen width will be stored. |
[out] | height | Pointer to an integer where the screen height will be stored. |
void save_settings | ( | ) |
Saves the application settings to a configuration file.
void load_settings | ( | ) |
Loads the application settings from a configuration file.
|
extern |
Array of resolution text strings.
This external variable holds an array of resolution text strings, where each string represents a different resolution option available in the application.