28 lines
382 B
C
28 lines
382 B
C
#ifndef _context_h
|
|
#define _context_h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "SDL2/SDL_render.h"
|
|
#include "SDL2/SDL_events.h"
|
|
|
|
typedef struct context_t {
|
|
SDL_Window* window;
|
|
SDL_Renderer* renderer;
|
|
SDL_Event event;
|
|
short running;
|
|
} context_t;
|
|
|
|
extern context_t g_context;
|
|
extern void init_context();
|
|
extern void close_context();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|