ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1
8
9#ifndef ASW_CORE_H
10#define ASW_CORE_H
11
12namespace asw::core {
13
16void update();
17
24void init(int width, int height, int scale = 1);
25
32void init_opengl(int width, int height, int scale = 1);
33
36void print_info();
37
41void exit();
42
45bool is_exiting();
46
49void shutdown();
50
51} // namespace asw::core
52
53#endif // ASW_CORE_H
void exit()
Exit the application. Sets exiting flag to true, which will cause the main loop to exit on the next u...
Definition core.cpp:191
void print_info()
Prints information about the core module.
Definition core.cpp:176
void init_opengl(int width, int height, int scale=1)
Initializes the core module for opengl.
Definition core.cpp:153
void shutdown()
Cleanup resources used by the core module. Should be called on application exit.
Definition core.cpp:196
void init(int width, int height, int scale=1)
Initializes the core module.
Definition core.cpp:136
void update()
Updates core module functionality.
Definition core.cpp:21
bool is_exiting()
Return exiting status.
Definition core.cpp:218