SpriteAtlas Descriptor meant to be used with AssetManager only.
More...
#include <SpriteAtlas.hpp>
|
| constexpr | Descriptor (std::string name, std::filesystem::path imagePath, const glm::uvec2 spriteResolution) noexcept |
| | Constructs a descriptor.
|
| uint32_t | GetRuntimeID () const |
| constexpr bool | operator== (const Descriptor &other) const noexcept |
SpriteAtlas Descriptor meant to be used with AssetManager only.
Definition at line 17 of file SpriteAtlas.hpp.
◆ AssetType
◆ Descriptor()
| Cori::Graphics::SpriteAtlas::Descriptor::Descriptor |
( |
std::string | name, |
|
|
std::filesystem::path | imagePath, |
|
|
const glm::uvec2 | spriteResolution ) |
|
inlineconstexprnoexcept |
Constructs a descriptor.
- Parameters
-
| name | Name to be used assigned to SpriteAtlas. |
| imagePath | Path to the image that will be used to create the SpriteAtlas. |
| spriteResolution | Resolution of one sprite in an atlas. |
- Note
- Total image size should be divisible by spriteResolution without a remainder.
Definition at line 26 of file SpriteAtlas.hpp.
◆ GetRuntimeID()
| uint32_t Cori::Graphics::SpriteAtlas::Descriptor::GetRuntimeID |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator==()
| bool Cori::Graphics::SpriteAtlas::Descriptor::operator== |
( |
const Descriptor & | other | ) |
const |
|
inlineconstexprnoexcept |
◆ m_Name
| const std::string Cori::Graphics::SpriteAtlas::Descriptor::m_Name |
◆ m_SpriteResolution
| const glm::uvec2 Cori::Graphics::SpriteAtlas::Descriptor::m_SpriteResolution |
◆ m_TexturePath
| const std::filesystem::path Cori::Graphics::SpriteAtlas::Descriptor::m_TexturePath |
The documentation for this class was generated from the following file: