Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CSpriteManager Class Reference

This object class supports managing multiple Sprites.. More...

#include <Graphics2D/SpriteFrame/CSpriteManager.h>

Classes

struct  SSpritePackage

Public Member Functions

CSpriteFrameloadSprite (const char *path)
CSpriteFramegetSpriteById (const char *id)
void releaseSprite (const char *category)
void releaseSprite (CSpriteFrame *sprite)
void releaseSpriteResource (const char *path)
CSpriteFramegetSpriteResource (const char *path)
void replaceTexture (ITexture *oldTexture, ITexture *newTexture)

Static Public Member Functions

static std::vector< std::string > getSpriteExts ()
static bool isSpriteExt (const char *ext)

Protected Attributes

std::map< std::string, CSpriteFrame * > m_idToSprite
std::map< std::string, CSpriteFrame * > m_pathToSprite
std::vector< SSpritePackage * > m_spriteList

Detailed Description

This object class supports managing multiple Sprites..

CSpriteFrame* spriteFrame = CSpriteManager::getInstance()->loadSprite("sprite.spritedata");
The object class holds data on an image, including the locations of sprites and frames on it.
Definition CSpriteFrame.h:144
See also
CSpriteFrame

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