DEADSOFTWARE

menu: add video settings
[flatwaifu.git] / src / system.h
1 #ifndef SYSTEM_H_INCLUDED
2 #define SYSTEM_H_INCLUDED
4 #include "glob.h"
6 #define SYSTEM_USE_OPENGL (1 << 0)
7 #define SYSTEM_USE_FULLSCREEN (1 << 1)
9 /* common video subsystem routines */
10 void Y_get_videomode (int *w, int *h);
11 int Y_videomode_setted (void);
12 void Y_unset_videomode (void);
13 void Y_set_fullscreen (int yes);
14 int Y_get_fullscreen (void);
16 /* hardware specific rendering */
17 int Y_set_videomode_opengl (int w, int h, int fullscreen);
18 void Y_swap_buffers (void);
20 /* software specific rendering */
21 int Y_set_videomode_software (int w, int h, int fullscreen);
22 void Y_get_buffer (byte **buf, int *w, int *h, int *pitch);
23 void Y_set_vga_palette (byte *vgapal);
24 void Y_repaint_rect (int x, int y, int w, int h);
25 void Y_repaint (void);
27 /* input */
28 void Y_enable_text_input (void);
29 void Y_disable_text_input (void);
31 #endif /* SYSTEM_H_INCLUDED */