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

Go to the source code of this file.

Classes

struct  GameState
 
struct  GameAPI
 

Macros

#define GAME_API_VERSION   1
 
#define GAME_GET_API_NAME   "get_game_api"
 

Typedefs

typedef struct SD_Application SD_Application
 
typedef struct SD_Scene SD_Scene
 
typedef struct SD_RuntimeStateManager SD_RuntimeStateManager
 
typedef struct GameState GameState
 
typedef void(* Game_OnLoadFn) (SD_Application *app, GameState *state)
 
typedef void(* Game_OnUpdateFn) (SD_Application *app, GameState *state, float dt)
 
typedef void(* Game_OnUnloadFn) (SD_Application *app, GameState *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, GameState *state)

◆ Game_OnUnloadFn

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

◆ Game_OnUpdateFn

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

◆ GameAPI

◆ GameState

◆ GetGameAPIFn

typedef GameAPI(* GetGameAPIFn) ()

◆ SD_Application

◆ SD_RuntimeStateManager

◆ SD_Scene