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

Sprite Struct Reference

A simple sprite struct. More...

#include <Sprites.hpp>

List of all members.

Public Member Functions

void configureOAM (int gfx_id, int num_colors, int width, int height)
 Shortcut to configure the OAM for this sprite.


Public Attributes

int x
 The X location of the sprite.

int y
 The Y location of the sprite.

int dx
 How fast the sprite is going in the X dir.

int dy
 How fast the sprite is going in the Y dir.

sSpriteEntry * oam
 The sprite's OAM entry.

int gfxID
 The graphics location.


Detailed Description

A simple sprite struct.


Member Function Documentation

void Sprite::configureOAM int  gfx_id,
int  num_colors,
int  width,
int  height
 

Shortcut to configure the OAM for this sprite.

Parameters:
gfx_id The location of the sprite in the OAM.
num_colors The number of colors in the sprite's pallete. If less than or equal to 16, it is assumed that this is a 16 color sprite. If larger, it is assumed to be a 256 color sprite.
width The width in pixels of the sprite.
height The height in pixels of the sprite.


The documentation for this struct was generated from the following files:
Generated on Fri Apr 22 13:47:45 2005 for PhoenixRising NDS Library by doxygen 1.3.6