LIBRARY ZX Low Res Colour Graphics (zxlowgfx.h) - z88dk/z88dk GitHub Wiki
Header | {z88dk}/include/zxlowgfx.h |
Source | |
Include | #include <zxlowgfx.h>
|
Linking | n/a |
Compile | n/a |
Comments | Assembly source embedded into the header file |
This library features a very low resolution, but permits to get full color support and very fast paging.
It is able to support picture buffering and can be pre-set to run in 32x48 or 64x24 pixels resolution mode.
See also the mandelbrot and the rotating cubes examples.
The defalut screen resolution is 32x48, but it is possible to activate the 64x24 one by defining the "ALTLOWGFX" variable.
Initializes the graphics screen with the appropriate hidden pattern and sets the background color.
Plot a pixel to screen
Get the current color of a given pixel
Draw a line at the given coordinates with the given color
Draw a line to the given coordinates with the given color starting from the last plotted point.
Put a monochrome sprite at the given position, painted with the given color.
Buffering is an optional feature; it can be enabled with the "bufferedgfx" environment variable. When active, the picture being drawn won't be visible till the next "ccopybuffer" call.
If it exists, clear the color graphics buffer.
If it exists, copy the color graphics buffer to the visible screen.