]> 4ch.mooo.com Git - 16.git/blob - 16/dos_gfx.h
ce24e28af11680252332b4169cf0ff1d1d95f005
[16.git] / 16 / dos_gfx.h
1 #ifndef _DOSLIB_GFX_H_\r
2 #define _DOSLIB_GFX_H_\r
3 #include <iostream.h>\r
4 #include <stdlib.h>\r
5 #include "lib\lib_com.h"
6 #include "lib\x\modex.h"\r
7 \r
8 #define NUM_COLORS      256 // number of colors in vga mode\r
9 //static lgq=NUM_COLORS/(1/8)\r
10 //static hgq=NUM_COLORS/(1/8)\r
11 #define BONK        400\r
12 #define LGQ          32\r
13 #define HGQ          56\r
14 #define TILEWH                  16
15 #define QUADWH                  TILEWH/2
16 #define BUFFMX                  4\r
17 /*byte SIZE = 80;       // Size =  40 = 1 across, 4 down\r
18                      // Size =  80 = 2 across, 2 down\r
19                      // Size = 160 = 4 across, 1 down*/\r
20 //#define VMEM      0xA000 // = vga\r
21
22 #define SW      320\r
23 #define SH      240\r
24 //#define VW    560\r
25 //#define VH    416
26 #define VW      (SW+64)\r
27 #define VH      (SH+64)
28 #define BS (VH*2) // buffer space! not BULLSHIT
29 #define BH      BS+(TILEWH*BUFFMX) // buffer resolution
30 \r
31 //void drawChar(int x, int y, int color, byte c);\r
32 //void drawText(int x, int y, int color, byte string);\r
33 void setvideo(/*byte mode, */short vq);\r
34 //void setvbuff(int vq);\r
35 //void updatevbuff();\r
36 void cls(byte color, byte *Where);\r
37 //void clearscr();\r
38 //void plotpixel(int x, int y, byte color, byte *Where);\r
39 //void plotpixelfast(int x, int y, byte color, byte *Where);\r
40 //void putPixel_X(int x, int y, byte color);\r
41 //void putColorBox_X(int x, int y, int w, int h, byte color);
42 //void vScroll(int rows);
43 //void scrolly(int bong);
44 //void wait_for_retrace(void); // Waits for vertical retrace\r
45 //void BlockMove();\r
46 //void eraseplayer(int x, int y);\r
47 //void drawplayer(int x, int y, int color);\r
48 short colortest();\r
49 short colorz();\r
50 void ssd(short svq);\r
51 void pdump();\r
52 //void tulip();\r
53 short ding(int q);\r
54 \r
55 #endif/*_DOSLIB_GFX_H_*/\r