forked from 0ad/0ad
38 lines
678 B
C
38 lines
678 B
C
|
#ifndef GUIRenderer_h
|
||
|
#define GUIRenderer_h
|
||
|
|
||
|
#include "lib/res/handle.h"
|
||
|
#include "ps/Overlay.h"
|
||
|
#include "ps/CStr.h"
|
||
|
#include <vector>
|
||
|
|
||
|
namespace GUIRenderer
|
||
|
{
|
||
|
struct SDrawCall
|
||
|
{
|
||
|
Handle m_TexHandle;
|
||
|
|
||
|
bool m_EnableBlending;
|
||
|
|
||
|
CRect m_Vertices;
|
||
|
CRect m_TexCoords;
|
||
|
float m_DeltaZ;
|
||
|
|
||
|
CColor m_BorderColor; // == CColor() for no border
|
||
|
CColor m_BackColor;
|
||
|
};
|
||
|
|
||
|
typedef std::vector<SDrawCall> DrawCalls;
|
||
|
}
|
||
|
|
||
|
#include "gui/CGUISprite.h"
|
||
|
|
||
|
namespace GUIRenderer
|
||
|
{
|
||
|
void UpdateDrawCallCache(DrawCalls &Calls, CStr &SpriteName, CRect& Size, std::map<CStr, CGUISprite> &Sprites);
|
||
|
|
||
|
void Draw(DrawCalls &Calls);
|
||
|
}
|
||
|
|
||
|
#endif // GUIRenderer_h
|