NightFox’s Lib
Data Fields
NF_TYPE_TBGLAYERS_INFO Struct Reference

Struct that holds information about backgrounds loaded to the screen. More...

#include <nf_tiledbg.h>

Data Fields

u8 tilebase
 Initial VRAM block used by the tile set.
 
u8 tileblocks
 Number of blocks used by the tile set.
 
u8 mapbase
 Initial VRAM block used by the map.
 
u8 mapblocks
 Number of blocks used by the map.
 
u16 bgwidth
 Background width.
 
u16 bgheight
 Background height.
 
u16 mapwidth
 Map width.
 
u16 mapheight
 Map height.
 
u8 bgtype
 Background type.
 
u8 bgslot
 Graphics buffer used (NF_BUFFER_BGMAP)
 
u8 blockx
 Map block (horizontal)
 
u8 blocky
 Map block (vertical)
 
bool created
 True if the background has been created.
 

Detailed Description

Struct that holds information about backgrounds loaded to the screen.

The hardware of the DS doesn't allow using maps bigger than 512x512 pixels. It is needed to keep a value that speficies if the hardware manages the background (if it's smaller or equal to 512x512), or if we use the tile swapping engine of NFLib (if it's bigger).

Background types:


The documentation for this struct was generated from the following file: