/* * TextFX by Jari Komppa * * Textmode low-level functions (80x43,nb) */ /********************/ /* Data & variables */ /********************/ extern char palette[16*3]; /**************/ /* Prototypes */ /**************/ extern void set80x43(void); /* Sets up 80x43, no blink, no cursor. */ extern void set80x25(void); /* Resets 80x25, blink, cursor. */ extern short int calcpal(int red, int green, int blue); /* Finds the closest color/char combo for any 0:63,0:63,0:63 value. */ /* NOT MEANT FOR REALTIME USE, so just calculate your palette with */ /* this before effect. */ extern void border(char color); /* _ONLY_ for debugging! */ extern void vrc(void); /* Although most if not all should be timer-synced.. */ extern void writechar(int x, int y, int ch, int col); /* Primitive putpixel. */ extern void writeword(int x, int y, int col); /* Better, but you still shouldn't use these :) */