prime/include/GuiSys/CGuiWidgetDrawParms.hpp

22 lines
544 B
C++
Raw Normal View History

2022-12-31 19:01:15 +00:00
#ifndef _CGUIWIDGETDRAWPARMS
#define _CGUIWIDGETDRAWPARMS
#include "Kyoto/Math/CVector3f.hpp"
class CGuiWidgetDrawParms {
private:
static CGuiWidgetDrawParms sDefaultDrawParms;
public:
CGuiWidgetDrawParms(float alpha) : mAlpha(alpha), mCameraOffset(0.f, 0.f, 0.f) {}
float GetAlpha() const { return mAlpha; }
const CVector3f& GetCameraOffset() const { return mCameraOffset; }
static CGuiWidgetDrawParms Default() { return sDefaultDrawParms; }
private:
float mAlpha;
CVector3f mCameraOffset;
};
#endif // _CGUIWIDGETDRAWPARMS