18#ifndef INCLUDED_GUIRENDERER
19#define INCLUDED_GUIRENDERER
66 void UpdateDrawCallCache(
const CGUI& pGUI,
DrawCalls& Calls,
const CStr8& SpriteName,
const CRect& Size,
const bool RoundCoordinates, std::map<CStr8, std::unique_ptr<const CGUISprite>>& Sprites);
Definition: Canvas2D.h:36
The GUI sprite, is actually several real sprites (images) like a collage.
Definition: CGUISprite.h:116
The main object that represents a whole GUI page.
Definition: CGUI.h:80
Rectangle class used for screen rectangles.
Definition: Rect.h:31
Definition: GUIRenderer.h:58
DrawCalls()
Definition: GUIRenderer.cpp:41
DrawCalls & operator=(const DrawCalls &)
Definition: GUIRenderer.cpp:57
std::shared_ptr< CTexture > CTexturePtr
Definition: Texture.h:25
Definition: GUIRenderer.h:37
void Draw(DrawCalls &Calls, CCanvas2D &canvas)
Definition: GUIRenderer.cpp:318
void UpdateDrawCallCache(const CGUI &pGUI, DrawCalls &Calls, const CStr8 &SpriteName, const CRect &Size, const bool RoundCoordinates, std::map< CStr8, std::unique_ptr< const CGUISprite > > &Sprites)
Same as the CColor class, but this one can also parse colors predefined in the GUI page (such as "yel...
Definition: CGUIColor.h:31
Definition: GUIRenderer.h:39
SDrawCall(const SGUIImage *image)
Definition: GUIRenderer.h:40
CRect m_Vertices
Definition: GUIRenderer.h:48
CTexturePtr m_Texture
Definition: GUIRenderer.h:45
CRect m_ObjectSize
Definition: GUIRenderer.h:47
float m_GrayscaleFactor
Definition: GUIRenderer.h:54
const SGUIImage * m_Image
Definition: GUIRenderer.h:43
CColor m_ColorAdd
Definition: GUIRenderer.h:52
CColor m_ColorMultiply
Definition: GUIRenderer.h:53
CGUIColor * m_BackColor
Definition: GUIRenderer.h:50
CRect ComputeTexCoords() const
Definition: GUIRenderer.cpp:261
A CGUISprite is actually a collage of several real sprites, this struct represents is such real sprit...
Definition: CGUISprite.h:55