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

Affine background support. More...

#include <nds.h>
#include "nf_tiledbg.h"

Data Structures

struct  NF_TYPE_AFFINE_BG
 Struct that holds information about affine tiled backgrounds. More...
 

Functions

void NF_InitAffineBgSys (int screen)
 Initializes the affine background system of the selected screen. More...
 
void NF_LoadAffineBg (const char *file, const char *name, u32 width, u32 height)
 Load an affine background to RAM from the filesystem. More...
 
void NF_CreateAffineBg (int screen, u32 layer, const char *name, u32 wrap)
 Create an affine background in a layer using graphics preloaded in RAM. More...
 
void NF_DeleteAffineBg (int screen, u32 layer)
 Deletes from VRAM the background of the specified screen and layer. More...
 
void NF_AffineBgTransform (int screen, u32 layer, s32 x_scale, s32 y_scale, s32 x_tilt, s32 y_tilt)
 Modify the transformation matrix of the specified background. More...
 
void NF_AffineBgMove (int screen, u32 layer, s32 x, s32 y, s32 angle)
 Moves the affine background to the specified position. More...
 

Variables

NF_TYPE_AFFINE_BG NF_AFFINE_BG [2][4]
 Information of all affine backgrounds.
 

Detailed Description

Affine background support.