![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
This class is a wrapper for the texture manager to allow easy manipulation. More...
#include <C_texture.hpp>
Public Types | |
| using | SharedDataType |
| using | SharedType |
Public Member Functions | |
| fge::Vector2u | getTextureSize () const |
| Get the texture size. | |
| fge::RectInt | getTextureRect () const |
| SharedType::element_type * | retrieveGroup (std::size_t index) |
| Retrieve a sub-texture inside this texture group. | |
| SharedType::element_type const * | retrieveGroup (std::size_t index) const |
| std::size_t | groupSize () const |
| virtual void | clear () |
| Clear the resource. | |
| void | reload () |
| Reload the cached resource from the same name. | |
| bool | valid () const |
| Check if the font is valid (not unloaded) | |
| SharedDataType const & | getSharedBlock () const |
| Get the resource block data. | |
| SharedType const & | getSharedData () const |
| Get the shared resource data. | |
| std::string const & | getName () const |
| Get the name of the resource. | |
| manager::GlobalDataAccessorManagerInfo< texture::TextureManager, &texture::gManager >::Manager::DataType * | retrieve () |
| Retrieve the raw shared pointer from the current resource. | |
| manager::GlobalDataAccessorManagerInfo< texture::TextureManager, &texture::gManager >::Manager::DataType * | retrieveValid () |
| Retrieve the raw shared pointer from the current resource only if the resource is valid. | |
This class is a wrapper for the texture manager to allow easy manipulation.
|
virtualinherited |
Clear the resource.
This method clear the resource by setting it to the default/bad "valid" resource.
|
nodiscardinherited |
Get the name of the resource.
|
nodiscardinherited |
Get the resource block data.
|
nodiscardinherited |
Get the shared resource data.
|
nodiscard |
Get the texture size.
|
inherited |
Reload the cached resource from the same name.
|
nodiscardinherited |
Retrieve the raw shared pointer from the current resource.
|
nodiscard |
Retrieve a sub-texture inside this texture group.
| index | The index of the sub-texture |
|
nodiscardinherited |
Retrieve the raw shared pointer from the current resource only if the resource is valid.
|
nodiscardinherited |
Check if the font is valid (not unloaded)