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
5
extern
"C"
{
6
#endif
7
8
#include <stdint.h>
9
10
/**
11
* @note ARC_WindowType is determined by which window backend you are using
12
*/
13
typedef
struct
ARC_WindowType
ARC_Window
;
14
15
/**
16
* @note certain parts of ARC_WindowInfo may not be used by your selected backend
17
*/
18
typedef
struct
ARC_WindowInfo
{
19
char
*
title
;
20
int32_t
w
;
21
int32_t
h
;
22
}
ARC_WindowInfo
;
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
*/
33
void
ARC_Window_Create
(
ARC_Window
**window,
ARC_WindowInfo
*info);
34
35
/**
36
* @brief destroys ARC_Window type
37
*/
38
void
ARC_Window_Destroy
(
ARC_Window
*window);
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
// !ARC_GRAPHICS_WINDOW_H_
ARC_WindowInfo
Definition
window.h:18
ARC_WindowInfo::h
int32_t h
Definition
window.h:21
ARC_WindowInfo::title
char * title
Definition
window.h:19
ARC_WindowInfo::w
int32_t w
Definition
window.h:20
ARC_Window
struct ARC_WindowType ARC_Window
Definition
window.h:13
ARC_Window_Create
void ARC_Window_Create(ARC_Window **window, ARC_WindowInfo *info)
creates ARC_Window type
ARC_WindowInfo
struct ARC_WindowInfo ARC_WindowInfo
ARC_Window_Destroy
void ARC_Window_Destroy(ARC_Window *window)
destroys ARC_Window type
include
arc
graphics
window.h