finally compiling and running, text still needs rework

This commit is contained in:
2024-09-16 16:17:00 +03:00
parent 551d60ef85
commit 16c96010dc
43 changed files with 299 additions and 309 deletions

View File

@ -1,9 +1,10 @@
#ifndef TWN_ENGINE_CONTEXT_H
#define TWN_ENGINE_CONTEXT_H
#ifndef TWN_ENGINE_CONTEXT_C_H
#define TWN_ENGINE_CONTEXT_C_H
#include "twn_context.h"
#include "textures/internal_api.h"
#include "twn_textures_c.h"
#include "twn_input.h"
#include "rendering/twn_rendering_c.h"
#include <SDL2/SDL.h>
@ -12,7 +13,8 @@
typedef struct engine_context {
t_ctx game_context;
/* user code facing context */
t_ctx game;
/* the program's actual argc and argv */
int argc;
@ -45,6 +47,6 @@ typedef struct engine_context {
bool was_successful;
} t_engine_ctx;
extern t_engine_ctx ctx = ;
extern t_engine_ctx ctx;
#endif