]> 4ch.mooo.com Git - 16.git/blobdiff - 16/dos_gfx.h
O SHIT I COMPILED IT ALL WWWW
[16.git] / 16 / dos_gfx.h
index 084e80f06dcc439eca7c6f7b0935ad9dc9c07dee..cb47dc91dc18abeeb9479cee67a650c225495384 100644 (file)
@@ -2,40 +2,55 @@
 #define _DOSLIB_GFX_H_\r
 #include <iostream.h>\r
 #include <stdlib.h>\r
-#include "lib\lib_com.h"\r
+#include "lib\lib_com.h"
+#include "lib\x\modex.h"
+#include "lib\modex16.h" //____\r
 \r
-#define NUM_COLORS      256 // number of colors in vga mode\r
+#define NUM_COLORS     256 // number of colors in vga mode\r
 //static lgq=NUM_COLORS/(1/8)\r
 //static hgq=NUM_COLORS/(1/8)\r
-#define BONK            400\r
-#define LGQ             32\r
-#define HGQ             56\r
-#define TILEWH                          16\r
-#define ABS(a)   ((a < 0) ? -a : a)\r
-#define SGN(a)   ((a < 0) ? -1 : 1)\r
-//#define VMEM            0xA000 // = vga\r
-//int width = 320;\r
-//int height = 240;\r
+#define BONK       400\r
+#define LGQ         32\r
+#define HGQ         55\r
+#define TILEWH                 16
+#define QUADWH                 TILEWH/2
+#define BUFFMX                 4\r
+/*byte SIZE = 80;      // Size =  40 = 1 across, 4 down\r
+                    // Size =  80 = 2 across, 2 down\r
+                    // Size = 160 = 4 across, 1 down*/\r
+//#define VMEM     0xA000 // = vga\r
+
+#define SW     320\r
+#define SH     240\r
+//#define VW   560\r
+//#define VH   416
+#define VW     (SW+64)\r
+#define VH     (SH+64)
+#define BS (VH*2) // buffer space! not BULLSHIT
+#define BH     BS+(TILEWH*BUFFMX) // buffer resolution
 \r
-void drawChar(int x, int y, int color, byte c);\r
-void drawText(int x, int y, int color, byte string);\r
-void setvideo(/*byte mode, */int vq);\r
+//void drawChar(int x, int y, int color, byte c);\r
+//void drawText(int x, int y, int color, byte string);\r
+void setvideo(/*byte mode, */short vq);\r
 //void setvbuff(int vq);\r
 //void updatevbuff();\r
 void cls(byte color, byte *Where);\r
 //void clearscr();\r
 //void plotpixel(int x, int y, byte color, byte *Where);\r
 //void plotpixelfast(int x, int y, byte color, byte *Where);\r
-void putPixel_X(int x, int y, byte color);\r
-void putColorBox_X(int x, int y, int w, int h, byte color);\r
+//void putPixel_X(int x, int y, byte color);\r
+//void putColorBox_X(int x, int y, int w, int h, byte color);
+//void vScroll(int rows);
+//void scrolly(int bong);
+//void wait_for_retrace(void); // Waits for vertical retrace\r
 //void BlockMove();\r
 //void eraseplayer(int x, int y);\r
 //void drawplayer(int x, int y, int color);\r
-int colortest();\r
-int colorz();\r
-void ssd(int svq);\r
-//void pdump(int mult);\r
+short colortest();\r
+short colorz();\r
+void ssd(short svq);\r
+void pdump();\r
 //void tulip();\r
-int ding(int q);\r
+short ding(int q);\r
 \r
 #endif/*_DOSLIB_GFX_H_*/\r