LIBRARY ZX Low Res Colour Graphics (zxlowgfx.h)
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.
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage