17#ifndef OPENSNES_BACKGROUND_H
18#define OPENSNES_BACKGROUND_H
36#define SC_32x32 BG_MAP_32x32
37#define SC_64x32 BG_MAP_64x32
38#define SC_32x64 BG_MAP_32x64
39#define SC_64x64 BG_MAP_64x64
48#define BG_256COLORS 256
140 "bgSetMapPtr: the tilemap address must be a multiple of 0x400 words; BGnSC keeps vramAddr >> 10");
169 "bgSetGfxPtr: the tile address must be a multiple of 0x1000 words; BG12NBA/BG34NBA keep vramAddr >> 12");
206 u8 paletteEntry,
u16 tileSize,
u16 paletteSize,
209 "bgInitTileSet: the tile address must be a multiple of 0x1000 words (see bgSetGfxPtr)");
221 "bgInitTileSetData: the tile address must be a multiple of 0x1000 words (see bgSetGfxPtr), or bgNumber 0xFF");
245#define bgClearTilemap(vramAddr, fillTile, sizeBytes) \
246 dmaFillVRAM((u16)(fillTile), (u16)(vramAddr), (u16)(sizeBytes))
void bgInitTileSet
Definition background.h:209
void bgSetScrollY(u8 bg, u16 y)
Set vertical scroll only.
void or bgNumber
Definition background.h:221
void bgSetScrollX(u8 bg, u16 x)
Set horizontal scroll only.
u16 bgGetScrollY(u8 bg)
Get current vertical scroll position (from shadow).
void bgInitTileSetData
Definition background.h:221
void bgSetMapPtr
Definition background.h:140
void bgSetGfxPtr
Definition background.h:169
u16 bg_address_refused
Set background tile graphics address.
void bgSetScroll(u8 bg, u16 x, u16 y)
Set background scroll position.
BGnSC keeps vramAddr
Definition background.h:140
u16 bgGetScrollX(u8 bg)
Get current horizontal scroll position (from shadow).
void bgInit(u8 bg)
Initialize background layer to defaults.
unsigned short u16
16-bit unsigned integer (0 to 65535)
Definition types.h:53
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
#define OPENSNES_CHECK_ARGS(cond, msg)
Refuse a call whose constant argument the hardware cannot take.
Definition types.h:334