citro2d
|
Stateful sprite API. More...
#include "spritesheet.h"
Go to the source code of this file.
Data Structures | |
struct | C2D_Sprite |
Functions | |
static void | C2D_SpriteFromImage (C2D_Sprite *sprite, C2D_Image image) |
Initializes a sprite from an image. More... | |
static void | C2D_SpriteFromSheet (C2D_Sprite *sprite, C2D_SpriteSheet sheet, size_t index) |
Initializes a sprite from an image stored in a sprite sheet. More... | |
static void | C2D_SpriteScale (C2D_Sprite *sprite, float x, float y) |
Scale sprite (relative) More... | |
static void | C2D_SpriteRotate (C2D_Sprite *sprite, float radians) |
Rotate sprite (relative) More... | |
static void | C2D_SpriteRotateDegrees (C2D_Sprite *sprite, float degrees) |
Rotate sprite (relative) More... | |
static void | C2D_SpriteMove (C2D_Sprite *sprite, float x, float y) |
Move sprite (relative) More... | |
static void | C2D_SpriteSetScale (C2D_Sprite *sprite, float x, float y) |
Scale sprite (absolute) More... | |
static void | C2D_SpriteSetRotation (C2D_Sprite *sprite, float radians) |
Rotate sprite (absolute) More... | |
static void | C2D_SpriteSetRotationDegrees (C2D_Sprite *sprite, float degrees) |
Rotate sprite (absolute) More... | |
static void | C2D_SpriteSetCenter (C2D_Sprite *sprite, float x, float y) |
Set the center of a sprite in values independent of the sprite size (absolute) More... | |
static void | C2D_SpriteSetCenterRaw (C2D_Sprite *sprite, float x, float y) |
Set the center of a sprite in terms of pixels (absolute) More... | |
static void | C2D_SpriteSetPos (C2D_Sprite *sprite, float x, float y) |
Move sprite (absolute) More... | |
static void | C2D_SpriteSetDepth (C2D_Sprite *sprite, float depth) |
Sets the depth level of a sprite (absolute) More... | |
static bool | C2D_DrawSprite (const C2D_Sprite *sprite) |
Draw sprite. More... | |
static bool | C2D_DrawSpriteTinted (const C2D_Sprite *sprite, const C2D_ImageTint *tint) |
Draw sprite with color tinting. More... | |
Stateful sprite API.