The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoSprite Struct Reference
[SoSprite]

Structure representing a single sprite. More...

#include <SoSprite.h>


Data Fields

u16 m_Attribute [4]
 Sprite attributes.


Detailed Description

Structure representing a single sprite.

You should never instantiate a SoSprite object yourself as a sprite created in this fasion is useless. You should create a pointer to a SoSprite, and use the SoSpriteManagerRequestSprite function to make this pointer point to a valid sprite.


Field Documentation

u16 SoSprite::m_Attribute[ 4 ]
 

Sprite attributes.

For internal use only.

Actually you will only ever use the first 3 attributes. But because we use these structures as overlays on OAM, we have to have a fourth attribute to fill it up. This fourth attribute is actually part of one of the 32 rotation and scale settings available. See the SoSpriteManager.c file for more information on this OAM (and shadow OAM, which is interesting).

But you never work with these attribute directly anyway, you should use the SoSprite functions instead. So what do you care? :) hehe...


The documentation for this struct was generated from the following file:
Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.