#include <nds/ndstypes.h>
#include <nds/arm9/background.h>
Data Structures | |
| struct | PrintConsole |
| console structure used to store the state of a console render context More... | |
Enumerations | |
| enum | DebugDevice { DebugDevice_NOCASH = 0x1, DebugDevice_CONSOLE = 0x02 } |
| Console debug devices supported by libnds. More... | |
Functions | |
| void | consoleClear (void) |
| Clears the screan by iprintf("\x1b[2J");. | |
| void | consoleDebugInit (DebugDevice device) |
| Initializes debug console output on stderr to the specified device. | |
| PrintConsole * | 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. | |
| PrintConsole * | consoleGetDefault (void) |
| Gets a pointer to the default console (this should only be used when using a single console, other wise use consoleNew(PrintsConsole* console). | |
| PrintConsole * | consoleInit (PrintConsole *console, int layer, BgType type, BgSize size, int mapBase, int tileBase, bool mainDisplay, bool loadGraphics) |
| Initialise the console. | |
| void | consoleSelect (PrintConsole *console) |
| Make the specified console the render target. | |
| void | consoleSetFont (PrintConsole *console, ConsoleFont *font) |
| Loads the font into the current console. | |
| void | consoleSetWindow (PrintConsole *console, int x, int y, int width, int height) |
| Sets the print window. | |
consoleDebugInit(DebugDevice_NOCASH); fprintf(stderr, "debug message in no$gba window %i", stuff);
OR
consoleDebugInit(DebugDevice_CONSOLE); fprintf(stderr, "debug message on DS console screen");
| enum DebugDevice |
| void consoleDebugInit | ( | DebugDevice | device | ) |
Initializes debug console output on stderr to the specified device.
| device | The debug device (or devices) to output debug print statements to |
| PrintConsole * consoleGetDefault | ( | void | ) |
Gets a pointer to the default console (this should only be used when using a single console, other wise use consoleNew(PrintsConsole* console).
| PrintConsole * consoleInit | ( | PrintConsole * | console, | |
| int | layer, | |||
| BgType | type, | |||
| BgSize | size, | |||
| int | mapBase, | |||
| int | tileBase, | |||
| bool | mainDisplay, | |||
| bool | loadGraphics | |||
| ) |
Initialise the console.
| console | A pointer to the console initialze data (if null default console will be used) | |
| layer | background layer to use | |
| type | the type of the background | |
| size | the size of the background | |
| mapBase | the map base | |
| tileBase | the tile graphics base | |
| mainDisplay | if true main engine is used, otherwise false | |
| loadGraphics | if true the default font graphics will be loaded into the layer |
| void consoleSelect | ( | PrintConsole * | console | ) |
Make the specified console the render target.
| console | A pointer to the console struct (must have been initialized with consoleInit(PrintConsole* console) |
| void consoleSetFont | ( | PrintConsole * | console, | |
| ConsoleFont * | font | |||
| ) |
Loads the font into the current console.
| console | pointer to the print console to update | |
| font | the font to load |
| void consoleSetWindow | ( | PrintConsole * | console, | |
| int | x, | |||
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
Sets the print window.
| console | console to set, if NULL will set current console window | |
| x | x location of the window | |
| y | y location of the window | |
| width | width of the window | |
| height | height of the window |
1.5.7.1