|
| void | Clear (size_t TextureDimension) |
| void | IncreaseDimension (size_t NewTextureDimension) |
| bool | Add (size_t Width, size_t Height, int &PosX, int &PosY) |
◆ Add()
| bool CAtlas::Add |
( |
size_t | Width, |
|
|
size_t | Height, |
|
|
int & | PosX, |
|
|
int & | PosY ) |
|
inline |
◆ AddSection()
| void CAtlas::AddSection |
( |
size_t | X, |
|
|
size_t | Y, |
|
|
size_t | W, |
|
|
size_t | H ) |
|
inlineprivate |
◆ Clear()
| void CAtlas::Clear |
( |
size_t | TextureDimension | ) |
|
|
inline |
◆ IncreaseDimension()
| void CAtlas::IncreaseDimension |
( |
size_t | NewTextureDimension | ) |
|
|
inline |
◆ UseSection()
| void CAtlas::UseSection |
( |
const SSection & | Section, |
|
|
size_t | Width, |
|
|
size_t | Height, |
|
|
int & | PosX, |
|
|
int & | PosY ) |
|
inlineprivate |
◆ m_SectionsMap
◆ m_TextureDimension
| size_t CAtlas::m_TextureDimension |
|
private |
◆ m_vSections
| std::vector<SSection> CAtlas::m_vSections |
|
private |
◆ MAX_SECTION_DIMENSION_MAPPED
Sections with larger width or height will be stored in m_vSections. Sections with width and height equal or smaller will be stored in m_SectionsMap. This achieves a good balance between the size of the vector storing all large sections and the map storing vectors of all sections with specific small sizes. Lowering this value will result in the size of m_vSections becoming the bottleneck. Increasing this value will result in the map becoming the bottleneck.
◆ MIN_SECTION_DIMENSION
| size_t CAtlas::MIN_SECTION_DIMENSION = 6 |
|
staticconstexprprivate |
Sections with a smaller width or height will not be created when cutting larger sections, to prevent collecting many small, mostly unusable sections.
The documentation for this class was generated from the following file: