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