Add types.h, standardize integer types on stdint
This commit is contained in:
20
src/game.c
20
src/game.c
@@ -104,7 +104,8 @@ akerr_ErrorContext AKERR_NOIGNORE *akgl_game_init()
|
||||
camera.x = 0;
|
||||
camera.y = 0;
|
||||
camera.w = game.screenwidth;
|
||||
camera.h = game.screenheight;
|
||||
camera.h = game.screenheight;
|
||||
SUCCEED(errctx);
|
||||
}
|
||||
|
||||
void akgl_game_updateFPS()
|
||||
@@ -119,3 +120,20 @@ void akgl_game_updateFPS()
|
||||
game.framesSinceUpdate += 1;
|
||||
game.lastIterTime = curTime;
|
||||
}
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_save(char *fpath)
|
||||
{
|
||||
FILE *fp = NULL;
|
||||
PREPARE_ERROR(errctx);
|
||||
|
||||
FAIL_ZERO_RETURN(errctx, fpath, AKERR_NULLPOINTER, "NULL file path");
|
||||
fp = fopen(fpath, "rb");
|
||||
fclose(fp);
|
||||
SUCCEED(errctx); // SUCCEED_NORETURN if in main().
|
||||
}
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *akgl_game_load(char *fpath)
|
||||
{
|
||||
PREPARE_ERROR(errctx);
|
||||
SUCCEED(errctx);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user