X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fdos_gfx.h;h=cb47dc91dc18abeeb9479cee67a650c225495384;hb=5a58cbe2fbb89c31abbb46b23d6bfc6d2765cca5;hp=bc536945ccc730c87b8ff11e10cfebb0a73aad10;hpb=fc7d63d3fc9f520cbd6c95ef2e070733dae4400d;p=16.git diff --git a/16/dos_gfx.h b/16/dos_gfx.h index bc536945..cb47dc91 100644 --- a/16/dos_gfx.h +++ b/16/dos_gfx.h @@ -2,43 +2,55 @@ #define _DOSLIB_GFX_H_ #include #include -#include "lib\lib_com.h" +#include "lib\lib_com.h" +#include "lib\x\modex.h" +#include "lib\modex16.h" //____ -#define NUM_COLORS 256 // number of colors in vga mode +#define NUM_COLORS 256 // number of colors in vga mode //static lgq=NUM_COLORS/(1/8) //static hgq=NUM_COLORS/(1/8) -#define BONK 400 -#define LGQ 32 -#define HGQ 56 -#define TILEWH 16 -/*byte SIZE = 80; // Size = 40 = 1 across, 4 down - // Size = 80 = 2 across, 2 down - // Size = 160 = 4 across, 1 down*/ -//#define VMEM 0xA000 // = vga -byte Xfont[2048]; +#define BONK 400 +#define LGQ 32 +#define HGQ 55 +#define TILEWH 16 +#define QUADWH TILEWH/2 +#define BUFFMX 4 +/*byte SIZE = 80; // Size = 40 = 1 across, 4 down + // Size = 80 = 2 across, 2 down + // Size = 160 = 4 across, 1 down*/ +//#define VMEM 0xA000 // = vga + +#define SW 320 +#define SH 240 +//#define VW 560 +//#define VH 416 +#define VW (SW+64) +#define VH (SH+64) +#define BS (VH*2) // buffer space! not BULLSHIT +#define BH BS+(TILEWH*BUFFMX) // buffer resolution -void drawChar(int x, int y, int color, byte c); -void drawText(int x, int y, int color, byte string); -void setvideo(/*byte mode, */int vq); +//void drawChar(int x, int y, int color, byte c); +//void drawText(int x, int y, int color, byte string); +void setvideo(/*byte mode, */short vq); //void setvbuff(int vq); //void updatevbuff(); void cls(byte color, byte *Where); //void clearscr(); //void plotpixel(int x, int y, byte color, byte *Where); //void plotpixelfast(int x, int y, byte color, byte *Where); -void putPixel_X(int x, int y, byte color); -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 +//void putPixel_X(int x, int y, byte color); +//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 //void BlockMove(); //void eraseplayer(int x, int y); //void drawplayer(int x, int y, int color); -int colortest(); -int colorz(); -void ssd(int svq); -//void pdump(int mult); +short colortest(); +short colorz(); +void ssd(short svq); +void pdump(); //void tulip(); -int ding(int q); +short ding(int q); #endif/*_DOSLIB_GFX_H_*/