libnds
Data Fields
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.


The documentation for this struct was generated from the following file: