You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
564 B
30 lines
564 B
#pragma once |
|
|
|
#include <assert.h> |
|
#include <vector> |
|
|
|
#include <SDL2/SDL.h> |
|
//#include <SDL_image.h> |
|
#include <SDL_mixer.h> |
|
//#include "SDL_FontCache.h" |
|
|
|
#define SDL_CHECK(e) assert(e == 0) |
|
|
|
extern SDL_Window *window; |
|
extern SDL_Renderer *renderer; |
|
extern SDL_Texture *texture; |
|
extern SDL_Surface *surface; |
|
extern SDL_Palette *palette; |
|
extern SDL_Surface *pal_surface; |
|
|
|
void sdl_present_surface(); |
|
|
|
#ifdef __WINDOWS__ |
|
#include <direct.h> |
|
#define GetCurrentDir _getcwd |
|
#else |
|
#include <unistd.h> |
|
#define GetCurrentDir getcwd |
|
#endif |
|
|
|
void sdl_update_entire_surface();
|
|
|