metaforce/Runtime/GuiSys/CGuiPane.hpp

38 lines
986 B
C++
Raw Normal View History

#ifndef __URDE_CGUIPANE_HPP__
#define __URDE_CGUIPANE_HPP__
#include "CGuiWidget.hpp"
2016-03-17 22:19:25 +00:00
#include "specter/View.hpp"
namespace urde
{
class CGuiPane : public CGuiWidget
{
2016-03-17 22:19:25 +00:00
protected:
float xf8_xDim;
float xfc_zDim;
/* Originally a vert-buffer pointer for GX */
std::vector<specter::View::TexShaderVert> x100_verts;
// u32 x104_ = 4; /* vert count */
zeus::CVector3f x108_scaleCenter;
public:
2016-03-17 22:19:25 +00:00
CGuiPane(const CGuiWidgetParms& parms, float xDim, float zDim, const zeus::CVector3f& scaleCenter);
FourCC GetWidgetTypeID() const {return FOURCC('PANE');}
virtual void ScaleDimensions(const zeus::CVector3f& scale);
2016-03-17 22:19:25 +00:00
virtual void SetDimensions(const zeus::CVector2f& dim, bool initVBO);
virtual zeus::CVector2f GetDimensions() const;
virtual void InitializeBuffers();
virtual void WriteData(COutputStream& out, bool flag) const;
2016-03-17 22:19:25 +00:00
static CGuiPane* Create(CGuiFrame* frame, CInputStream& in, bool);
};
}
#endif // __URDE_CGUIPANE_HPP__