partially done work on total source tree rework, separation of engine context and game context, generalization of renderer for different backends as well as web platform target

This commit is contained in:
2024-09-16 09:07:01 +03:00
parent ca0305feab
commit 551d60ef85
59 changed files with 2892 additions and 890 deletions

22
include/twn_game_api.h Normal file
View File

@ -0,0 +1,22 @@
/* 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"
/* 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);
/* called when application is closing. */
TWN_API extern void game_end(void);
#endif