PVSnesLib  4.3.0
Documentation to code in C or ASM for the Nintendo SNES
pixel.h File Reference

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...
 

Detailed Description

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

Function Documentation

◆ pixSetMode()

pixSetMode ( u8 *  pixPalette)

Init pixel mode with SNES mode 0.

Parameters
pixPaletteaddress of palette entry

◆ pixSetPixel()

pixSetPixel ( u8  x,
u8  y,
u8  color 
)

Draw a dot.

Parameters
xx coordinate of dot
yy coordinate of dot
colorcolor of pixel (must be 1, 2 or 3)