sdl_helper.h 408 B

123456789101112131415161718192021
  1. #ifndef _SDL_HELPER_H_
  2. #define _SDL_HELPER_H_
  3. #include "SDL2/SDL.h"
  4. #include "SDL2/SDL_image.h"
  5. int DD_GAME_WIDTH;
  6. int DD_GAME_HEIGHT;
  7. // flag for the game running (should me moved somewhere else)
  8. int dd_game_running;
  9. // renderer to be used in the game
  10. SDL_Renderer *dd_ren;
  11. // image loader functions
  12. SDL_Texture *dd_load_bmp(const char *filepath);
  13. SDL_Texture *dd_load_image(const char *file);
  14. #endif