Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIRenderer.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | struct SDrawCall | ||||
CRect m_ObjectSize; | CRect m_ObjectSize; | ||||
bool m_EnableBlending; | bool m_EnableBlending; | ||||
CShaderTechniquePtr m_Shader; | CShaderTechniquePtr m_Shader; | ||||
CColor m_ShaderColorParameter; | CColor m_ShaderColorParameter; | ||||
CRect m_Vertices; | CRect m_Vertices; | ||||
float m_DeltaZ; | |||||
CGUIColor* m_BorderColor; // == nullptr for no border | CGUIColor* m_BorderColor; // == nullptr for no border | ||||
CGUIColor* m_BackColor; | CGUIColor* m_BackColor; | ||||
}; | }; | ||||
class DrawCalls : public std::vector<SDrawCall> | class DrawCalls : public std::vector<SDrawCall> | ||||
{ | { | ||||
public: | public: | ||||
DrawCalls(); | DrawCalls(); | ||||
// Copy/assignment results in an empty list, not an actual copy | // Copy/assignment results in an empty list, not an actual copy | ||||
DrawCalls(const DrawCalls&); | DrawCalls(const DrawCalls&); | ||||
DrawCalls& operator=(const DrawCalls&); | DrawCalls& operator=(const DrawCalls&); | ||||
}; | }; | ||||
void UpdateDrawCallCache(const CGUI& pGUI, DrawCalls& Calls, const CStr8& SpriteName, const CRect& Size, std::map<CStr8, const CGUISprite*>& Sprites); | void UpdateDrawCallCache(const CGUI& pGUI, DrawCalls& Calls, const CStr8& SpriteName, const CRect& Size, std::map<CStr8, const CGUISprite*>& Sprites); | ||||
void Draw(DrawCalls& Calls, float Z); | void Draw(DrawCalls& Calls); | ||||
} | } | ||||
#endif // INCLUDED_GUIRENDERER | #endif // INCLUDED_GUIRENDERER |
Wildfire Games · Phabricator