townengine/include/twn_game_api.h

24 lines
546 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 TWN_GAME_API_H
#define TWN_GAME_API_H
2024-07-08 00:44:20 +00:00
#include "twn_input.h"
#include "twn_context.h"
2024-10-07 14:53:09 +00:00
#include "twn_draw.h"
#include "twn_audio.h"
#include "twn_engine_api.h"
#include "twn_util.h"
2024-07-08 00:44:20 +00:00
#ifndef TWN_NOT_C
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);
#endif
2024-07-08 00:44:20 +00:00
#endif