#include <GraphicsComponent.hpp>
Definition at line 18 of file GraphicsComponent.hpp.
◆ destroy()
| void GraphicsComponent::destroy |
( |
| ) |
|
|
override |
◆ getType()
| ae::ComponentTypeID GraphicsComponent::getType |
( |
| ) |
const |
|
inlineoverride |
◆ init()
| void GraphicsComponent::init |
( |
| ) |
|
|
inlineoverride |
◆ loadGraphic()
| GraphicAsset GraphicsComponent::loadGraphic |
( |
const std::string & | path | ) |
|
Loads a graphic asset's tiles, pal, and map into memory.
- Parameters
-
| path | Path relative to the base path. |
- Returns
- GraphicAsset with the loaded graphics data
Definition at line 11 of file GraphicsComponent.cpp.
◆ loadSpriteGraphic()
template<typename SpriteID>
| GraphicAsset GraphicsComponent::loadSpriteGraphic |
( |
const std::string & | spritePath, |
|
|
SpriteType | type, |
|
|
SpriteID | spriteId ) |
|
inline |
Wrapper function that loads a sprite graphic asset into memory.
This is a templated wrapper function, which calls loadSpriteGraphicImpl
- Template Parameters
-
- Parameters
-
| spritePath | Path relative to the base path. |
| type | Sprite type |
| spriteId | Sprite id |
- Returns
- GraphicAsset with the loaded graphics data
Definition at line 57 of file GraphicsComponent.hpp.
◆ loadSpriteGraphicImpl()
| GraphicAsset GraphicsComponent::loadSpriteGraphicImpl |
( |
const std::string & | spritePath, |
|
|
SpriteType | type, |
|
|
int | spriteId ) |
|
private |
Loads the sprite graphic asset's tiles, pal, and map into memory via the spriteDb.
- Parameters
-
| spritePath | Path relative to the base path. |
| type | Sprite type |
| spriteId | Sprite id |
- Returns
- GraphicAsset with the loaded graphics data
Definition at line 40 of file GraphicsComponent.cpp.
◆ submitToManager()
| void GraphicsComponent::submitToManager |
( |
| ) |
|
|
inlineoverrideprotected |
◆ unloadAll()
| void GraphicsComponent::unloadAll |
( |
| ) |
|
◆ unloadGraphic()
| void GraphicsComponent::unloadGraphic |
( |
GraphicAsset & | asset | ) |
|
◆ update()
| void GraphicsComponent::update |
( |
ae::q20_12_t | | ) |
|
|
inlineoverride |
◆ id
| int GraphicsComponent::id = -1 |
|
private |
◆ io
| IOManager& GraphicsComponent::io = IOManager::getInstance() |
|
private |
◆ loadedGraphics
| etl::vector<GraphicAsset, 32> GraphicsComponent::loadedGraphics |
|
private |
◆ TYPE_ID
The documentation for this class was generated from the following files: