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.c File Reference

#include "SoSprite.h"
#include "SoDisplay.h"
#include "SoDebug.h"

Functions

void SoSpriteDisable (SoSprite *a_This)
 Disables rendering of this sprite.

void SoSpriteSetTranslate (SoSprite *a_This, s32 a_X, s32 a_Y)
 Sets the screen position of the top left corner of the sprite.

void SoSpriteSetAnimationIndex (SoSprite *a_This, u32 a_Index)
 Sets the animation (character-data) this sprite should use.

u32 SoSpriteGetAnimationIndex (SoSprite *a_This)
 Returns the animation index the sprite is using.

void SoSpriteSet256ColorMode (SoSprite *a_This, bool a_Enable)
 Sets the sprite to 256 color palette mode instead of 16 color palettes.

void SoSpriteSetMosaicEnable (SoSprite *a_This, bool a_Enable)
 Enabs the mosaic for this sprite.

void SoSpriteSetRotationAndScaleEnable (SoSprite *a_This, bool a_Enable)
 Enables sprite rotation and scaling.

void SoSpriteSetRotationAndScaleIndex (SoSprite *a_This, u32 a_Index)
 Sets the index used for sprite scale and rotation settings.

void SoSpriteSetSizeDoubleEnable (SoSprite *a_This, bool a_Enable)
 Enables double size for the sprite.

void SoSpriteFlipHorizontal (SoSprite *a_This)
 Flips the sprite horizontally.

void SoSpriteFlipVertical (SoSprite *a_This)
 Flips the sprite vertically.

u32 SoSpriteGetWidth (SoSprite *a_This)
 Returns the width of the sprite.

u32 SoSpriteGetHeight (SoSprite *a_This)
 Returns the height of the sprite.

void SoSpriteSetSize (SoSprite *a_This, u32 a_Width, u32 a_Height)
 Sets the size of the sprite.

void SoSpriteCopyPropertiesFromAnimation (SoSprite *a_This, const SoSpriteAnimation *a_Animation)
 Copies the size and color attributes from a certain animation.

void SoSpriteSetPriority (SoSprite *a_This, u32 a_Priority)
 changes the display priority for a particular sprite

void SoSpriteSet16ColorPaletteIndex (SoSprite *a_This, u16 a_Index)
 set the sprite to use one of the 16 palettes available in 16 color mode


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter
Date:
Jun 27 2001
See the SoSprite module for more information.

Contains the non-inline functions of the SoSprite module.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.