This is a set of graphic (and math) routines for the Euphoria programming language (version 2.0 and above).
All the routines are for mode 19 only (except for the math routines).
The displaying routines are all made in assembly, using Pete Eberlein's asm.e, and should be pretty fast. If someone knows a way to optimize the routines or make a faster routine, please mail your new routine to me. All drawing routines all work on virtual screens as well, wich allows you to make flickerless graphics. Just set up a virtual screen like this:
virtual_screen=allocate(64000)
After that you can display all your tiles/sprites, draw your lines/polygons etc. onto this "screen". Then just blast the whole screen over to the real screen with asm_copy_screen().
There's also a large number of routines for manipulating the palette. These routines were all based on Jacques Deschenes' ports.e
Remember to always call free_asm_code() at the end of your program to free the memory wich has been allocated for the assembly routines.
There are some files included in the zip-file that m19lib needs to work. These are asm.e, and ports.e. If you don't have these files in your include directory already you should put them there. Note that the m19lib demonstration programs won't run unless you have asm.e, ports.e, m19lib.e and all the m19lib modules in your euphoria\include directory (or in the same directory as the programs).
Mic -99, stabmaster_@hotmail.com