townengine/include/twn_game_api.h

23 lines
504 B
C
Raw Normal View History

2024-07-08 00:44:20 +00:00
/* include this header in game code to get the usable parts of the engine */
#ifndef GAME_API_H
#define GAME_API_H
#include "twn_context.h"
#include "twn_rendering.h"
#include "twn_audio.h"
#include "twn_util.h"
#include "twn_input.h"
#include "twn_engine_api.h"
2024-07-08 00:44:20 +00:00
2024-08-21 13:55:34 +00:00
/* sole game logic and display function.
all state must be used from and saved to supplied state pointer. */
TWN_API extern void game_tick(void);
2024-08-21 13:55:34 +00:00
/* called when application is closing. */
TWN_API extern void game_end(void);
2024-07-08 00:44:20 +00:00
#endif