metaforce/Runtime/GuiSys/CGuiPane.hpp

37 lines
1008 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:
zeus::CVector2f xb8_dim;
2016-03-17 22:19:25 +00:00
/* Originally a vert-buffer pointer for GX */
2017-01-30 04:16:20 +00:00
std::vector<specter::View::TexShaderVert> xc0_verts;
2016-03-17 22:19:25 +00:00
// u32 x104_ = 4; /* vert count */
2017-01-30 04:16:20 +00:00
zeus::CVector3f xc8_scaleCenter;
2016-03-17 22:19:25 +00:00
public:
CGuiPane(const CGuiWidgetParms& parms, const zeus::CVector2f& dim, const zeus::CVector3f& scaleCenter);
2017-01-29 03:58:16 +00:00
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 std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
};
}
#endif // __URDE_CGUIPANE_HPP__