forked from Ninoh-FOX/ohboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui_sdl.h
35 lines (21 loc) · 933 Bytes
/
gui_sdl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "ubytegui/gui.h"
int gui_maprgb(int r, int g, int b);
int gui_pollevent(guievent_t *ev);
unsigned int darken(int color);
unsigned int osd_darken(int color);
void gui_drawpixmap(pixmap_t *pix, int x, int y, int color, int invert);
void osd_drawpixmap(pixmap_t *pix, int x, int y, int color);
void gui_begin();
int gui_update();
void gui_end();
void osd_cls(int x, int y, int w, int h);
void gui_cls();
void gui_drawrect(int x, int y, int w, int h, int color, int rounded);
void osd_drawrect(int x, int y, int w, int h, int color, int rounded);
void osd_drawtext(font_t *font, const char *text, int x, int y, int color);
void gui_sleep(int s);
/****************************************/
/* needs SDL_keysym.h */
#define SCREENSHOT_SDL_KEY SDLK_PAUSE
#define SCREENSHOT_DEFAULT_FILENAME "screenshot_ohboy_.bmp"
void TakeScreenShot(SDL_Surface *screen_to_save, char *filename);