kiba-engine
Functions
entry.h File Reference

Entry point for any application linked against kiba. More...

#include <kiba/core/event.h>
#include <kiba/core/input.h>
#include <kiba/core/log.h>
#include <kiba/defines.h>
#include <kiba/format/format.h>
#include <kiba/gpu/backend.h>
#include <kiba/platform/timer.h>
Include dependency graph for entry.h:

Go to the source code of this file.

Functions

b8 create_application (void)
 Initialization of the application. More...
 
b8 update_application (f64 delta)
 Updating the application. More...
 
void destroy_application (void)
 Shutdown of the application. More...
 
int main (int argc, char **argv)
 Entrypoint of the application. More...
 

Detailed Description

Entry point for any application linked against kiba.

Contains function declaration for application initialization as well as the main function.

Definition in file entry.h.

Function Documentation

◆ create_application()

b8 create_application ( void  )

Initialization of the application.

Must be implemented in user code.

◆ destroy_application()

void destroy_application ( void  )

Shutdown of the application.

Must be implemented in user code.

◆ main()

int main ( int  argc,
char **  argv 
)

Entrypoint of the application.

The application does not need to define a main. Instead it must define a create_application.

Parameters
argcnumber of CLI arguments
argvCLI arguments

Definition at line 51 of file entry.h.

Here is the call graph for this function:

◆ update_application()

b8 update_application ( f64  delta)

Updating the application.

E.g. processing a frame of a game

Must be implemented in user code.