diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-12 20:44:15 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-12 20:44:15 (GMT) |
| commit | 0f4c0915d9bdfbd9e865200941083bd463d03d69 (patch) | |
| tree | eb01e996656c59b303d74bfd79f9a947fa32f277 /includes/graphics.h | |
| parent | 1b984200f3059680f6ad3cfe9805bff234d00737 (diff) | |
| download | powder-0f4c0915d9bdfbd9e865200941083bd463d03d69.zip powder-0f4c0915d9bdfbd9e865200941083bd463d03d69.tar.gz | |
Replace cmode with more flexible render options, TODO: Saving and render options UI
Diffstat (limited to 'includes/graphics.h')
| -rw-r--r-- | includes/graphics.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/graphics.h b/includes/graphics.h index b704a54..957c160 100644 --- a/includes/graphics.h +++ b/includes/graphics.h @@ -45,7 +45,12 @@ extern int emp_decor; -extern unsigned cmode; +extern unsigned int *render_modes; +extern unsigned int render_mode; +extern unsigned int colour_mode; +extern unsigned int *display_modes; +extern unsigned int display_mode; + extern SDL_Surface *sdl_scrn; extern int sdl_scale; @@ -120,6 +125,8 @@ void draw_menu(pixel *vid_buf, int i, int hover); void drawpixel(pixel *vid, int x, int y, int r, int g, int b, int a); +int addchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a); + int drawchar(pixel *vid, int x, int y, int c, int r, int g, int b, int a); int drawtext(pixel *vid, int x, int y, const char *s, int r, int g, int b, int a); |
