YourGameLib
Loading...
Searching...
No Matches
Functions
mygame Namespace Reference

User functions that are linked to and called by the yourgame library framework. More...

Functions

void init (int argc, char *argv[])
 user project initialization
 
void tick ()
 user project update/draw (once pre frame)
 
int shutdown ()
 user project clean-up
 

Detailed Description

User functions that are linked to and called by the yourgame library framework.

The yourgame library expects the functions in the mygame namespace to be implemented. They are called by the yourgame library framework at specific moments. The underlying application logic (main function) is provided by the framework. Implementing these functions is mandatory and makes the user project executable together with the yourgame library.

Function Documentation

◆ init()

void mygame::init ( int  argc,
char *  argv[] 
)
extern

user project initialization

called by the yourgame framework after it has been initialized

Parameters
argcnumber of arguments
argvarguments, forwarded from main() (C style application args)

◆ shutdown()

int mygame::shutdown ( )
extern

user project clean-up

called by the yourgame framework before it is shut down

◆ tick()

void mygame::tick ( )
extern

user project update/draw (once pre frame)

called by the yourgame framework once per frame