nds/arm9/console.h

nds stdio support. [詳細]

#include <nds/jtypes.h>

マクロ定義

#define CONSOLE_USE_COLOR255   16

関数

void consoleInit (u16 *font, u16 *charBase, u16 numCharacters, u8 charStart, u16 *map, u8 pal, u8 bitDepth)
 Initialise the console.
void consoleInitDefault (u16 *map, u16 *charBase, u8 bitDepth)
 Initialize the console with some default parameters.
void consoleDemoInit (void)
 Initialize the console to a default state for prototyping. This function sets the console to use sub display, VRAM_C, and BG0 and enables MODE_0_2D on the sub display. It is intended for use in prototyping applications which need print ability and not actual game use. Print functionality can be utilized with just this call.
void consoleClear (void)
 Clears the screan by iprintf("\x1b[2J");


説明

nds stdio support.


マクロ定義

#define CONSOLE_USE_COLOR255   16


関数

void consoleClear ( void   ) 

Clears the screan by iprintf("\x1b[2J");

void consoleDemoInit ( void   ) 

Initialize the console to a default state for prototyping. This function sets the console to use sub display, VRAM_C, and BG0 and enables MODE_0_2D on the sub display. It is intended for use in prototyping applications which need print ability and not actual game use. Print functionality can be utilized with just this call.

void consoleInit ( u16 font,
u16 charBase,
u16  numCharacters,
u8  charStart,
u16 map,
u8  pal,
u8  bitDepth 
)

Initialise the console.

引数:
font base address of the 16 color font to use
charBase VRAM address to load the font
numCharacters number of characters in the font
charStart ascii code of the first character in the font
map base address of the map to use for printing
pal 16 color palette index to use
bitDepth 256/16 color tile flag.
Initializes the console with the given parameters. When pal is greater than 15 and bitDepth is 16 then all non zero entries in the font are set to index 255. When bitDepth is not 16 then the font tiles are created as 8bit (256 color).

void consoleInitDefault ( u16 map,
u16 charBase,
u8  bitDepth 
)

Initialize the console with some default parameters.

引数:
charBase VRAM address to load the font
map base address of the map to use for printing
bitDepth 256/16 color tile flag
This function calls consoleInit() with the default built in font and character ranges, the parameters given are as for that function.


libnds(ARM9)に対してTue Jan 22 15:48:22 2008に生成されました。  doxygen 1.5.4