#include <CGUISprite.h>
◆ CGUISpriteInstance() [1/2]
CGUISpriteInstance::CGUISpriteInstance |
( |
| ) |
|
◆ CGUISpriteInstance() [2/2]
CGUISpriteInstance::CGUISpriteInstance |
( |
const CStr & |
SpriteName | ) |
|
◆ 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.
◆ m_CachedSize
CRect CGUISpriteInstance::m_CachedSize |
|
mutableprivate |
◆ m_DrawCallCache
◆ m_SpriteName
CStr CGUISpriteInstance::m_SpriteName |
|
private |
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/gui/CGUISprite.h
- /home/docker/jenkins/workspace/technical-docs/source/gui/CGUISprite.cpp