finally compiling and running, text still needs rework
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user