medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 03b20bfac8d4f25bdc3920039889d589ac6746a4
parent 39b1ddd71b6580ad873b24a9c3d110f49a2587d8
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Aug 16 19:34:14 +0200

Pass GameMemory to game.init

Diffstat:
game.h | 2+-
main.cc | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game.h b/game.h @@ -35,7 +35,7 @@ u8 * reserve_persistent( GameMemory & mem, const size_t size ) { struct GameInput { }; -#define GAME_INIT( name ) void name( GameState * state ) +#define GAME_INIT( name ) void name( GameState * state, GameMemory & mem ) typedef GAME_INIT( GameInit ); #define GAME_FRAME( name ) void name( GameMemory & mem, GLFWwindow * window, const float dt ) diff --git a/main.cc b/main.cc @@ -71,7 +71,7 @@ int main( int argc, char ** argv ) { GLFWwindow * const window = GL::init(); - game.init( state ); + game.init( state, mem ); float last_frame_time = glfwGetTime();