NightFox’s Lib
Data Structures | Macros | Functions | Variables
nf_bitmapbg.h File Reference

Bitmap background support. More...

#include <nds.h>

Data Structures

struct  NF_TYPE_BG16B_INFO
 Struct that holds information about 16-bit bitmap backgrounds. More...
 
struct  NF_TYPE_BG8B_INFO
 Struct that holds information about 8-bit bitmap backgrounds. More...
 
struct  NF_TYPE_BB8B_INFO
 Information of a backbuffer of 8 bit. More...
 

Macros

#define NF_SLOTS_BG16B   16
 Maximum number of slots of 16-bit bitmap backgrounds.
 
#define NF_SLOTS_BG8B   16
 Maximum number of slots of 8-bit bitmap backgrounds.
 

Functions

void NF_Init16bitsBgBuffers (void)
 Initialize buffers to store 16-bit bitmap backgrounds. More...
 
void NF_Reset16bitsBgBuffers (void)
 Resets all 16 bit background buffers and clears them. More...
 
void NF_Init16bitsBackBuffer (int screen)
 Initialize the 16 bit background backbuffer of the selected screen. More...
 
void NF_Enable16bitsBackBuffer (int screen)
 Enables the 16-bit backbuffer of the selected screen. More...
 
void NF_Disble16bitsBackBuffer (int screen)
 Disables the 16-bit backbuffer of selected screen. More...
 
void NF_Flip16bitsBackBuffer (int screen)
 Sends the 16-bit backbuffer to the VRAM of the selected screen. More...
 
void NF_InitBitmapBgSys (int screen, u32 mode)
 Initializes the selected screen in "bitmap" mode. More...
 
void NF_Load16bitsBg (const char *file, u32 slot)
 Loads a 16-bit bitmap from the filesystem. More...
 
void NF_Load16bitsImage (const char *file, u32 slot, u32 size_x, u32 size_y)
 Loads a 16 bits image into a RAM slot. More...
 
void NF_Unload16bitsBg (u32 slot)
 Deletes from RAM the 16-bit image stored in the selected slot. More...
 
void NF_Copy16bitsBuffer (int screen, int destination, u32 slot)
 Copy the selected 16-bit slot to VRAM or the backbuffer. More...
 
void NF_Draw16bitsImage (int screen, u32 slot, s32 x, s32 y, bool alpha)
 Draws the image in a slot into the backbuffer of the selected screen. More...
 
void NF_Init8bitsBgBuffers (void)
 Initialize buffers to store 8-bit bitmap backgrounds. More...
 
void NF_Reset8bitsBgBuffers (void)
 Resets all 8 bit background buffers and clears them. More...
 
void NF_Load8bitsBg (const char *file, u32 slot)
 Loads a 8-bit bitmap from the filesystem. More...
 
void NF_Unload8bitsBg (u32 slot)
 Deletes from RAM the 8-bit image stored in the selected slot. More...
 
void NF_Copy8bitsBuffer (int screen, int destination, u32 slot)
 Copy the selected 8-bit slot to VRAM or the backbuffer. More...
 
void NF_Init8bitsBackBuffer (int screen)
 Initialize the 8 bit background backbuffer of the selected screen. More...
 
void NF_Enable8bitsBackBuffer (int screen)
 Enables the 8-bit backbuffer of the selected screen. More...
 
void NF_Disble8bitsBackBuffer (int screen)
 Disables the 8-bit backbuffer of selected screen. More...
 
void NF_Flip8bitsBackBuffer (int screen, int destination)
 Sends the 8-bit backbuffer to the VRAM of the selected screen. More...
 

Variables

NF_TYPE_BG16B_INFO NF_BG16B [NF_SLOTS_BG16B]
 Information of all 16-bit bitmap backgrounds.
 
NF_TYPE_BG8B_INFO NF_BG8B [NF_SLOTS_BG8B]
 Information of all 8-bit bitmap backgrounds.
 
NF_TYPE_BB8B_INFO NF_8BITS_BACKBUFFER [2]
 Backbuffer of 8 bit of each screen.
 

Detailed Description

Bitmap background support.