NightFox’s Lib
Functions
nf_2d.h File Reference

Functions to setup 2D video options. More...

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

Functions

void NF_Set2D (int screen, u32 mode)
 Init 2D mode for the selected screen. More...
 
void NF_ShowBg (int screen, u32 layer)
 Makes the BG of the selected layer and screen visible. More...
 
void NF_HideBg (int screen, u32 layer)
 Makes the BG of the selected layer and screen invisible. More...
 
void NF_ScrollBg (int screen, u32 layer, s32 x, s32 y)
 Moves the BG of the selected layer and screen to the specified coordinates. More...
 
void NF_SpriteFrame (int screen, u32 id, u32 frame)
 Selects which frame of the animation of a sprite is shown. More...
 
void NF_EnableSpriteRotScale (int screen, u32 sprite, u32 id, bool doublesize)
 Makes a sprite available to be rotated and scaled. More...
 
void NF_DisableSpriteRotScale (int screen, u32 sprite)
 Disables the rotation and scalation of sprite. More...
 
void NF_SpriteRotScale (int screen, u8 id, s32 angle, u32 sx, u32 sy)
 Setup the rotation and scalation values of a RotSet. More...
 

Detailed Description

Functions to setup 2D video options.