#include <CGUISprite.h>
◆ CGUISpriteInstance() [1/3]
| CGUISpriteInstance::CGUISpriteInstance |
( |
| ) |
|
◆ CGUISpriteInstance() [2/3]
| CGUISpriteInstance::CGUISpriteInstance |
( |
const CStr & |
SpriteName | ) |
|
◆ CGUISpriteInstance() [3/3]
| CGUISpriteInstance::CGUISpriteInstance |
( |
const CStr & |
SpriteName, |
|
|
const bool |
RoundCoordinates |
|
) |
| |
◆ Draw()
| void CGUISpriteInstance::Draw |
( |
CGUI & |
pGUI, |
|
|
CCanvas2D & |
canvas, |
|
|
const CRect & |
Size, |
|
|
std::map< CStr, std::unique_ptr< const CGUISprite > > & |
Sprites |
|
) |
| const |
◆ GetName()
| const CStr & CGUISpriteInstance::GetName |
( |
| ) |
const |
|
inline |
Returns the sprite texture name.
◆ MOVABLE()
◆ NONCOPYABLE()
◆ operator bool()
| CGUISpriteInstance::operator bool |
( |
| ) |
const |
|
inline |
Whether this Sprite has no texture name set.
◆ SetName()
| void CGUISpriteInstance::SetName |
( |
const CStr & |
SpriteName | ) |
|
Changes the texture name.
Use as rarely as possible, because it clears the draw cache.
◆ SetRoundCoordinates()
| void CGUISpriteInstance::SetRoundCoordinates |
( |
const bool |
RoundCoordinates | ) |
|
Sets the coordinates to be rounded to integer pixels.
This is useful for pixel art, icons in text, to avoid blurry filtering. Use as rarely as possible, because it clears the draw cache.
◆ m_CachedSize
| CRect CGUISpriteInstance::m_CachedSize |
|
mutableprivate |
◆ m_DrawCallCache
◆ m_RoundCoordinates
| bool CGUISpriteInstance::m_RoundCoordinates {true} |
|
private |
◆ m_SpriteName
| CStr CGUISpriteInstance::m_SpriteName {} |
|
private |
The documentation for this class was generated from the following files:
- /home/jenkins/jenkins/workspace/technical-docs/source/gui/CGUISprite.h
- /home/jenkins/jenkins/workspace/technical-docs/source/gui/CGUISprite.cpp