123456789101112131415161718192021 |
- #ifndef _SDL_HELPER_H_
- #define _SDL_HELPER_H_
- #include "SDL2/SDL.h"
- #include "SDL2/SDL_image.h"
- int DD_GAME_WIDTH;
- int DD_GAME_HEIGHT;
- // flag for the game running (should me moved somewhere else)
- int dd_game_running;
- // renderer to be used in the game
- SDL_Renderer *dd_ren;
- // image loader functions
- SDL_Texture *dd_load_bmp(const char *filepath);
- SDL_Texture *dd_load_image(const char *file);
- #endif
|