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
asw::core Namespace Reference

Functions

void update ()
 Updates core module functionality.
 
void init (int width, int height, int scale=1)
 Initializes the core module.
 
void init_opengl (int width, int height, int scale=1)
 Initializes the core module for opengl.
 
void print_info ()
 Prints information about the core module.
 
void exit ()
 Exit the application. Sets exiting flag to true, which will cause the main loop to exit on the next update.
 
bool is_exiting ()
 Return exiting status.
 
void shutdown ()
 Cleanup resources used by the core module. Should be called on application exit.
 

Function Documentation

◆ exit()

void asw::core::exit ( )

Exit the application. Sets exiting flag to true, which will cause the main loop to exit on the next update.

Definition at line 191 of file core.cpp.

◆ init()

void asw::core::init ( int width,
int height,
int scale = 1 )

Initializes the core module.

Parameters
widthThe width of the window.
heightThe height of the window.
scaleThe scale of the window.

Definition at line 136 of file core.cpp.

◆ init_opengl()

void asw::core::init_opengl ( int width,
int height,
int scale = 1 )

Initializes the core module for opengl.

Parameters
widthThe width of the window.
heightThe height of the window.
scaleThe scale of the window.

Definition at line 153 of file core.cpp.

◆ is_exiting()

bool asw::core::is_exiting ( )

Return exiting status.

Definition at line 218 of file core.cpp.

◆ print_info()

void asw::core::print_info ( )

Prints information about the core module.

Definition at line 176 of file core.cpp.

◆ shutdown()

void asw::core::shutdown ( )

Cleanup resources used by the core module. Should be called on application exit.

Definition at line 196 of file core.cpp.

◆ update()

void asw::core::update ( )

Updates core module functionality.

Definition at line 21 of file core.cpp.