1 #ifndef SYSTEM_H_INCLUDED
2 #define SYSTEM_H_INCLUDED
6 #define SYSTEM_USE_OPENGL (1 << 0)
7 #define SYSTEM_USE_FULLSCREEN (1 << 1)
9 /* common video subsystem routines */
10 int Y_set_videomode (int w
, int h
, int flags
);
11 void Y_get_videomode (int *w
, int *h
);
12 int Y_videomode_setted (void);
13 void Y_unset_videomode (void);
14 void Y_set_fullscreen (int yes
);
15 int Y_get_fullscreen (void);
17 /* hardware specific rendering */
18 void Y_swap_buffers (void);
20 /* software specific rendering */
21 void Y_get_buffer (byte
**buf
, int *w
, int *h
, int *pitch
);
22 void Y_set_vga_palette (byte
*vgapal
);
23 void Y_repaint_rect (int x
, int y
, int w
, int h
);
24 void Y_repaint (void);
26 #endif /* SYSTEM_H_INCLUDED */