SDEngine
Game Engine
Loading...
Searching...
No Matches
game_api.hpp File Reference
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for game_api.hpp:

Go to the source code of this file.

Classes

struct  GameAPI
 

Macros

#define GAME_API_VERSION   1
 
#define GAME_GET_API_NAME   "get_game_api"
 

Typedefs

typedef struct SD_Application SD_Application
 
typedef void(* Game_OnLoadFn) (SD_Application *app, void *state)
 
typedef void(* Game_OnUpdateFn) (SD_Application *app, void *state, float dt)
 
typedef void(* Game_OnUnloadFn) (SD_Application *app, void *state)
 
typedef void(* Game_OnReloadFn) (SD_Application *app, void *state)
 
typedef struct GameAPI GameAPI
 
typedef GameAPI(* GetGameAPIFn) ()
 

Macro Definition Documentation

◆ GAME_API_VERSION

#define GAME_API_VERSION   1

◆ GAME_GET_API_NAME

#define GAME_GET_API_NAME   "get_game_api"

Typedef Documentation

◆ Game_OnLoadFn

typedef void(* Game_OnLoadFn) (SD_Application *app, void *state)

◆ Game_OnReloadFn

typedef void(* Game_OnReloadFn) (SD_Application *app, void *state)

◆ Game_OnUnloadFn

typedef void(* Game_OnUnloadFn) (SD_Application *app, void *state)

◆ Game_OnUpdateFn

typedef void(* Game_OnUpdateFn) (SD_Application *app, void *state, float dt)

◆ GameAPI

◆ GetGameAPIFn

typedef GameAPI(* GetGameAPIFn) ()

◆ SD_Application