My Project
|
Class containing all elements of an Asset. More...
#include <Asset.hpp>
Public Member Functions | |
Asset (nlohmann::json const &jsonData) | |
Construct a new Asset object. More... | |
~Asset () | |
Destroy the Asset object. | |
MyTexture & | getTexture () |
Get the Texture object. More... | |
float | getScale () const |
Get the Scale object. More... | |
component::crect_t | getRectangle () const |
Get the Rectangle object. More... | |
std::size_t | getNbFrames () const |
Get the Nb Frames object. More... | |
Class containing all elements of an Asset.
Asset::Asset | ( | nlohmann::json const & | jsonData | ) |
Construct a new Asset object.
jsonData | json data to load asset |
std::size_t Asset::getNbFrames | ( | ) | const |
Get the Nb Frames object.
component::crect_t Asset::getRectangle | ( | ) | const |
Get the Rectangle object.
float Asset::getScale | ( | ) | const |
Get the Scale object.