metaforce/Runtime/GuiSys/CGuiModel.hpp

28 lines
719 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-03-10 03:47:37 +00:00
#include "CGuiWidget.hpp"
#include "CToken.hpp"
#include "Graphics/CModel.hpp"
2016-03-10 03:47:37 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
class CSimplePool;
2016-03-10 03:47:37 +00:00
2018-12-08 05:30:43 +00:00
class CGuiModel : public CGuiWidget {
TLockedToken<CModel> xb8_model;
CAssetId xc8_modelId;
u32 xcc_lightMask;
public:
2018-12-08 05:30:43 +00:00
CGuiModel(const CGuiWidgetParms& parms, CSimplePool* sp, CAssetId modelId, u32 lightMask, bool flag);
FourCC GetWidgetTypeID() const { return FOURCC('MODL'); }
2016-03-17 02:18:01 +00:00
2018-12-08 05:30:43 +00:00
std::vector<CAssetId> GetModelAssets() const;
bool GetIsFinishedLoadingWidgetSpecific() const;
void Touch() const;
void Draw(const CGuiWidgetDrawParms& parms) const;
2016-03-17 02:18:01 +00:00
2018-12-08 05:30:43 +00:00
static std::shared_ptr<CGuiWidget> Create(CGuiFrame* frame, CInputStream& in, CSimplePool* sp);
};
2016-03-10 03:47:37 +00:00
2018-12-08 05:30:43 +00:00
} // namespace urde