37 #ifndef INCLUDED_CGUISPRITE 38 #define INCLUDED_CGUISPRITE 61 m_FixedHAspectRatio(0.f), m_RoundCoordinates(true), m_WrapMode(GL_REPEAT),
62 m_Effects(NULL), m_Border(false), m_DeltaZ(0.f)
165 void Draw(
CRect Size,
int CellID, std::map<CStr, CGUISprite*>& Sprites,
float Z)
const;
167 bool IsEmpty()
const;
168 const CStr&
GetName() {
return m_SpriteName; }
181 #endif // INCLUDED_CGUISPRITE #define NONCOPYABLE(className)
Indicates that a class is noncopyable (usually due to const or reference members, or because the clas...
Definition: code_annotation.h:217
CRect m_CachedSize
Definition: CGUISprite.h:177
CColor m_AddColor
Definition: CGUISprite.h:47
Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of c...
Definition: Shapes.h:207
Definition: CGUISprite.h:44
float m_FixedHAspectRatio
If non-zero, then the image's width will be adjusted when rendering so that the width:height ratio eq...
Definition: CGUISprite.h:95
bool m_Border
Definition: CGUISprite.h:116
int m_CachedCellID
Definition: CGUISprite.h:178
bool m_RoundCoordinates
If true, the image's coordinates will be rounded to integer pixels when rendering, to avoid blurry filtering.
Definition: CGUISprite.h:101
SGUIImage()
Definition: CGUISprite.h:60
float m_DeltaZ
Z value modification of the image.
Definition: CGUISprite.h:123
Definition: GUIRenderer.h:67
CColor m_BackColor
Definition: CGUISprite.h:112
CClientArea m_Size
Definition: CGUISprite.h:75
SGUIImageEffects * m_Effects
Definition: CGUISprite.h:109
CRect m_TexturePlacementInFile
Definition: CGUISprite.h:83
SGUIImageEffects()
Definition: CGUISprite.h:46
VfsPath m_TextureName
Definition: CGUISprite.h:72
A CGUISprite is actually a collage of several real sprites, this struct represents is such real sprit...
Definition: CGUISprite.h:56
The GUI sprite, is actually several real sprites (images) like a collage.
Definition: CGUISprite.h:135
CStr m_SpriteName
Definition: CGUISprite.h:171
CColor m_BorderColor
Definition: CGUISprite.h:113
Definition: Decompose.h:22
std::vector< SGUIImage * > m_Images
List of images.
Definition: CGUISprite.h:150
void Draw(DrawCalls &Calls, float Z)
Definition: GUIRenderer.cpp:345
CGUISprite()
Definition: CGUISprite.h:139
Definition: CGUISprite.h:158
~SGUIImage()
Definition: CGUISprite.h:66
const CStr & GetName()
Definition: CGUISprite.h:168
CSize m_CellSize
Definition: CGUISprite.h:89
CClientArea m_TextureSize
Definition: CGUISprite.h:78
GLint m_WrapMode
Texture wrapping mode (GL_REPEAT, GL_CLAMP_TO_EDGE, etc)
Definition: CGUISprite.h:106
bool m_Greyscale
Definition: CGUISprite.h:49
CColor m_SolidColor
Definition: CGUISprite.h:48
Rectangle class used for screen rectangles.
Definition: Shapes.h:73
GUIRenderer::DrawCalls m_DrawCallCache
Definition: CGUISprite.h:174
Client Area is a rectangle relative to a parent rectangle.
Definition: GUIbase.h:164