removed clang-format and clang_complete files from the repo
[dosdemo] / src / glut / gfx.h
1 #ifndef GFX_H_
2 #define GFX_H_
3
4 #include "inttypes.h"
5
6 struct video_mode {
7         uint16_t mode;
8         short xsz, ysz, bpp, pitch;
9         short rbits, gbits, bbits;
10         short rshift, gshift, bshift;
11         uint32_t rmask, gmask, bmask;
12         uint32_t fb_addr;
13         short max_pages;
14         uint32_t bank_size;
15 };
16
17 struct video_mode *video_modes(void);
18 int num_video_modes(void);
19
20 #define VMODE_CURRENT   (-1)
21 struct video_mode *get_video_mode(int idx);
22
23 int match_video_mode(int xsz, int ysz, int bpp);
24
25 /* argument is the mode list index [0, nmodes-1] */
26 void *set_video_mode(int idx, int nbuf);
27
28 void blit_frame(void *pixels, int vsync);
29 void wait_vsync(void);
30
31 #endif  /* GFX_H_ */