2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-03-12 04:58:56 +00:00
|
|
|
|
|
|
|
#include "CGuiWidget.hpp"
|
2016-03-17 22:19:25 +00:00
|
|
|
#include "specter/View.hpp"
|
2016-03-12 04:58:56 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-03-12 04:58:56 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CGuiPane : public CGuiWidget {
|
2016-03-17 22:19:25 +00:00
|
|
|
protected:
|
2018-12-08 05:30:43 +00:00
|
|
|
zeus::CVector2f xb8_dim;
|
2016-03-17 22:19:25 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
/* Originally a vert-buffer pointer for GX */
|
|
|
|
std::vector<specter::View::TexShaderVert> xc0_verts;
|
|
|
|
// u32 x104_ = 4; /* vert count */
|
2016-03-17 22:19:25 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
zeus::CVector3f xc8_scaleCenter;
|
2016-03-17 22:19:25 +00:00
|
|
|
|
2016-03-12 04:58:56 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CGuiPane(const CGuiWidgetParms& parms, const zeus::CVector2f& dim, const zeus::CVector3f& scaleCenter);
|
2019-08-09 12:45:18 +00:00
|
|
|
FourCC GetWidgetTypeID() const override { return FOURCC('PANE'); }
|
2016-03-12 04:58:56 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual void ScaleDimensions(const zeus::CVector3f& scale);
|
|
|
|
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
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
static std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
|
2016-03-12 04:58:56 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|