Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

main.cpp File Reference

#include "tiles.h"
#include "alpha8.h"
#include <NDS/NDS.h>
#include <NDS/ARM9/BIOS.h>

Include dependency graph for arm9/main.cpp:

Include dependency graph

Classes

class  Tutorial01Tile
 The class that holds all of the data related to the application. The main simply instances one of these classes and then executes it via the "go" method. More...


Defines

#define C11   0 /**< Upper left corner of the castle. **/
#define C12   1 /**< Upper middle left of the castle. **/
#define C13   2 /**< Upper middle right of the castle. **/
#define C14   3 /**< Upper right cordner of the castle. **/
#define C21   4 /**< Lower left corner of the castle. **/
#define C22   5 /**< Lower middle left of the castle. **/
#define C23   6 /**< Lower middle right of the castle. **/
#define C24   7 /**< Lower right corner of the castle. **/
#define P11   8 /**< Upper left corner of the path. **/
#define P12   9 /**< Upper right corner of the path. **/
#define P21   12 /**< Lower left corner of the path. **/
#define P22   13 /**< Lower right cornder of the path. **/
#define T11   10 /**< Upper left corner of the tree. **/
#define T12   11 /**< Upper right corner of the tree. **/
#define T21   14 /**< Lower left corner of the tree. **/
#define T22   15 /**< Lower right cornder of the tree. **/
#define VRAM_ALL_LCD   0 /**< @todo attempt to remove **/
#define VRAM_ABCD_BG   1 /**< @todo attempt to remove **/
#define VRAM_ABCD_OBJ   2 /**< @todo attempt to remove **/
#define VRAM_ABCD_TEXTURE   3 /**< @todo attempt to remove **/

Typedefs

typedef unsigned short int u16
 This doesn't seem to be defined in NDS libraries, yet the pcx2gba outputs u16 arrays.


Functions

void InterruptHandler (void)
 A simple interrupt handler that accepts the IRQ_VBLANK event, invokes the application updateDisplay method.

int main (int argc, char **argv)
 Gains access to the application and invokes the go method.


Detailed Description

This is part of the first tile tutorial. Information was gather from several locations to get this to work. At the minimum, the following sites were consulted to get this far:

The full programmers guide can be found at: http://www.dspassme.com/programmers_guide/

This code has been tested in both dualis realease 2 as well as on an actual Nintendo DS via a PassMe device.

PhoenixRising


Define Documentation

#define C11   0 /**< Upper left corner of the castle. **/
 

Upper left corner of the castle. *

#define C12   1 /**< Upper middle left of the castle. **/
 

Upper middle left of the castle. *

#define C13   2 /**< Upper middle right of the castle. **/
 

Upper middle right of the castle. *

#define C14   3 /**< Upper right cordner of the castle. **/
 

Upper right cordner of the castle. *

#define C21   4 /**< Lower left corner of the castle. **/
 

Lower left corner of the castle. *

#define C22   5 /**< Lower middle left of the castle. **/
 

Lower middle left of the castle. *

#define C23   6 /**< Lower middle right of the castle. **/
 

Lower middle right of the castle. *

#define C24   7 /**< Lower right corner of the castle. **/
 

Lower right corner of the castle. *

#define P11   8 /**< Upper left corner of the path. **/
 

Upper left corner of the path. *

#define P12   9 /**< Upper right corner of the path. **/
 

Upper right corner of the path. *

#define P21   12 /**< Lower left corner of the path. **/
 

Lower left corner of the path. *

#define P22   13 /**< Lower right cornder of the path. **/
 

Lower right cornder of the path. *

#define T11   10 /**< Upper left corner of the tree. **/
 

Upper left corner of the tree. *

#define T12   11 /**< Upper right corner of the tree. **/
 

Upper right corner of the tree. *

#define T21   14 /**< Lower left corner of the tree. **/
 

Lower left corner of the tree. *

#define T22   15 /**< Lower right cornder of the tree. **/
 

Lower right cornder of the tree. *

#define VRAM_ALL_LCD   0 /**< @todo attempt to remove **/
 

Todo:
attempt to remove *

#define VRAM_ABCD_BG   1 /**< @todo attempt to remove **/
 

Todo:
attempt to remove *

#define VRAM_ABCD_OBJ   2 /**< @todo attempt to remove **/
 

Todo:
attempt to remove *

#define VRAM_ABCD_TEXTURE   3 /**< @todo attempt to remove **/
 

Todo:
attempt to remove *


Function Documentation

int main int  argc,
char **  argv
 

Gains access to the application and invokes the go method.

Parameters:
argc Ignored
argv Ignored
Return values:
0 Returned, but never executed because the code never returns.


Generated on Fri Apr 22 13:47:42 2005 for Tile01 Example Application by doxygen 1.3.6