mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-21 00:19:11 +00:00
21
include/GuiSys/CGuiWidgetDrawParms.hpp
Normal file
21
include/GuiSys/CGuiWidgetDrawParms.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user