#ifndef GFX_H #define GFX_H #include #include #include #include #include //these are all global variables, extern SDL_Window *mwindow; // main window were everything foes extern SDL_DisplayMode * screen; extern SDL_GLContext context; extern SDL_Renderer * renderp; extern TTF_Font * fontp; extern int maxx; extern int maxy; int initgfx(int x, int y, const char * title); int cleargfx(); int quitgfx(); int updategfx(); int drawimg(SDL_Rect r, SDL_Texture * tex); int drawimg(int x, int y, int w, int h,SDL_Texture * tex); int drawimg(int x, int y, int w, int h, const char * file); SDL_Texture * loadtexture(const char * file); int drawrect(int x, int y, int w, int h, const char *); int drawrect (int x, int y, int w, int h,int r, int g, int b, int a); int drawtext(int x, int y,const char * text, SDL_Color c); #endif