PVSnesLib
4.3.0
Documentation to code in C or ASM for the Nintendo SNES
|
contains the basic definitions for doing a pixel per pixel mode for SNES. More...
#include <snes/snestypes.h>
Go to the source code of this file.
Functions | |
void | pixSetMode (u8 *pixPalette) |
Init pixel mode with SNES mode 0. More... | |
void | pixSetPixel (u8 x, u8 y, u8 color) |
Draw a dot. More... | |
contains the basic definitions for doing a pixel per pixel mode for SNES.
map entry is 0x5800 and tiles entry is 0x6000 for 14K bytes !
so don't use graphics after 0x5800
this pixel mode uses SNES mode 0 so only 3 colors can be used
pixSetMode | ( | u8 * | pixPalette | ) |
Init pixel mode with SNES mode 0.
pixPalette | address of palette entry |
pixSetPixel | ( | u8 | x, |
u8 | y, | ||
u8 | color | ||
) |
Draw a dot.
x | x coordinate of dot |
y | y coordinate of dot |
color | color of pixel (must be 1, 2 or 3) |