OamState Struct Reference

Holds the state for a 2D sprite engine. More...

#include <sprite.h>

Data Fields

AllocHeader * allocBuffer
 array, allocation buffer for graphics allocation
s16 allocBufferSize
 current size of the allocation buffer
s16 firstFree
 pointer to the first free block of tiles
int gfxOffsetStep
 The distance between tiles as 2^gfxOffsetStep.
SpriteMapping spriteMapping
 the mapping of the oam.
SpriteEntryoamMemory
 pointer to shadow oam memory
SpriteRotationoamRotationMemory
 pointer to shadow oam memory for rotation

Detailed Description

Holds the state for a 2D sprite engine.

There are two of these objects, oamMain and oamSub and these must be passed in to all oam functions.

Examples:

Graphics/Sprites/allocation_test/source/main.c.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sat Oct 2 12:55:14 2010 for libnds by  doxygen 1.6.3