#ifndef SDL_H #define SDL_H #include #if !defined (__APPLE__) #include //#include #else #include //#include #endif #include "../timer.h" #include "spritesheets.h" #include "font.h" #include "sdl_extra.h" #include "r_soft.h" #include "r_gl.h" #include "../resources/badfont_large_png.h" #include "../resources/badfont_medium_png.h" #include "../resources/ui_png.h" #include "../resources/menu_bg_png.h" #define R_SOFTWARE 0 #define R_OPENGL 1 //struct Font *g_font_large; //struct Font *g_font_medium; /* global elements list */ struct ElementList *g_elements; struct Element *g_element_fps; /* internal */ double vid_delta; double vid_tickrate; int vid_frames; int g_cap_framerate; // bool for capping framerate to 60 struct PTime sleep_time; struct PTime count_time; /* */ SDL_Surface *screen; struct Spritesheet *spritesheet_ui; //struct Spritesheet *menu_bg; struct Font *font_mini; /* functions */ int interfaceSetVideo(); int interfaceSetRenderer(int render_id); #endif