Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Entry point details.

Macros

#define main   ::run
 This is to avoid redefining main as the engine defines it. We rename the user main to run and call it.
 

Functions

int run (int argc, char **argv)
 This is the user entry point. This should be implemented by the user.
 
int main (int argc, char **argv)
 Slight preparation needed by the engine for first time use. after the initialization is complete, the engine yields control to user by calling run. The engine is inteneded to work as a platform. entry points signature should be:
 

Detailed Description

Macro Definition Documentation

◆ main

#define main   ::run

This is to avoid redefining main as the engine defines it. We rename the user main to run and call it.

Definition at line 40 of file EntryPoint.h.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Slight preparation needed by the engine for first time use. after the initialization is complete, the engine yields control to user by calling run. The engine is inteneded to work as a platform. entry points signature should be:

int main(int argc, char** argv) //there is a macro defines main as run.
#define main
This is to avoid redefining main as the engine defines it. We rename the user main to run and call it...
Definition EntryPoint.h:40

or

int run(int argc, char** argv) //define run directly.
int run(int argc, char **argv)
This is the user entry point. This should be implemented by the user.

Definition at line 30 of file EntryPoint.h.

+ Here is the call graph for this function:

◆ run()

int run ( int argc,
char ** argv )
extern

This is the user entry point. This should be implemented by the user.

+ Here is the caller graph for this function: