Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1#ifndef ARC_GRAPHICS_WINDOW_H_
2#define ARC_GRAPHICS_WINDOW_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdint.h>
9
10/**
11 * @note ARC_WindowType is determined by which window backend you are using
12*/
13typedef struct ARC_WindowType ARC_Window;
14
15/**
16 * @note certain parts of ARC_WindowInfo may not be used by your selected backend
17*/
18typedef struct ARC_WindowInfo {
19 char *title;
20 int32_t w;
21 int32_t h;
23
24/**
25 * @brief creates ARC_Window type
26 *
27 * @note the parameter data is determined by which graphics library you are using
28 * please refer to the graphics library section to see what needs to be passed
29 *
30 * @param window ARC_Window to initialize
31 * @param info Info on how to create ARC_Window
32 */
34
35/**
36 * @brief destroys ARC_Window type
37 */
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif // !ARC_GRAPHICS_WINDOW_H_
int32_t h
Definition window.h:21
char * title
Definition window.h:19
int32_t w
Definition window.h:20
struct ARC_WindowType ARC_Window
Definition window.h:13
void ARC_Window_Create(ARC_Window **window, ARC_WindowInfo *info)
creates ARC_Window type
struct ARC_WindowInfo ARC_WindowInfo
void ARC_Window_Destroy(ARC_Window *window)
destroys ARC_Window type