2004-12-15 22:24:46 +01:00
|
|
|
#ifndef GUIRenderer_h
|
|
|
|
#define GUIRenderer_h
|
|
|
|
|
|
|
|
#include "lib/res/handle.h"
|
|
|
|
#include "ps/Overlay.h"
|
|
|
|
#include "ps/CStr.h"
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace GUIRenderer
|
|
|
|
{
|
2004-12-16 13:01:47 +01:00
|
|
|
struct Handle_rfcnt_tex
|
|
|
|
{
|
|
|
|
Handle h;
|
|
|
|
Handle_rfcnt_tex();
|
|
|
|
Handle_rfcnt_tex(Handle h_);
|
|
|
|
Handle_rfcnt_tex(const Handle_rfcnt_tex& that);
|
|
|
|
~Handle_rfcnt_tex();
|
|
|
|
Handle_rfcnt_tex& operator=(Handle h_);
|
|
|
|
};
|
|
|
|
|
2004-12-15 22:24:46 +01:00
|
|
|
struct SDrawCall
|
|
|
|
{
|
2004-12-16 13:01:47 +01:00
|
|
|
Handle_rfcnt_tex m_TexHandle;
|
2004-12-15 22:24:46 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2004-12-17 17:20:08 +01:00
|
|
|
void UpdateDrawCallCache(DrawCalls &Calls, CStr &SpriteName, CRect& Size, int IconID, std::map<CStr, CGUISprite> &Sprites);
|
2004-12-15 22:24:46 +01:00
|
|
|
|
|
|
|
void Draw(DrawCalls &Calls);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // GUIRenderer_h
|