OPgameState.h

OPgameState

  • void() Init
  • OPint() Update
  • void() Render
  • OPint() Exit
  • void* Data

Globals

  • OPgameState* ActiveState

Functions

  • void OPgameStateChange ( OPgameState* targetState )
Changes the current game state, on change calls the Exit on the current game state, and then the initialize on the new game state
  • OPgameState* OPgameStateCreate ( void() init, OPint() update, OPint() exit )
Creates a new OPgameState
  • OPint OPgameStateDestroy ( OPgameState* state )
Destroys an OPgameState by deallocating the memory