2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-21 00:06:39 +00:00
|
|
|
|
2016-07-26 22:05:59 +00:00
|
|
|
#include <vector>
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "zeus/CTransform.hpp"
|
|
|
|
#include "zeus/CAABox.hpp"
|
2017-12-29 08:08:12 +00:00
|
|
|
#include "hecl/HMDLMeta.hpp"
|
2018-10-07 02:59:17 +00:00
|
|
|
#include "Shaders/CModelShaders.hpp"
|
2016-07-26 22:05:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-07-26 22:05:59 +00:00
|
|
|
class CBooModel;
|
2017-04-25 04:46:24 +00:00
|
|
|
struct CBooSurface;
|
2015-08-21 00:06:39 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CMetroidModelInstance {
|
|
|
|
friend class CBooRenderer;
|
|
|
|
friend class CGameArea;
|
|
|
|
|
|
|
|
int x0_visorFlags;
|
|
|
|
zeus::CTransform x4_xf;
|
|
|
|
zeus::CAABox x34_aabb;
|
|
|
|
std::vector<CBooSurface> m_surfaces;
|
|
|
|
std::unique_ptr<CBooModel> m_instance;
|
|
|
|
hecl::HMDLMeta m_hmdlMeta;
|
|
|
|
std::unordered_map<int, CModelShaders::ShaderPipelines> m_shaders;
|
2016-07-26 22:05:59 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CMetroidModelInstance() = default;
|
|
|
|
CMetroidModelInstance(CMetroidModelInstance&&) = default;
|
|
|
|
void Clear() {
|
|
|
|
x0_visorFlags = 0;
|
|
|
|
x4_xf = {};
|
|
|
|
x34_aabb = {};
|
|
|
|
m_surfaces.clear();
|
|
|
|
m_instance.reset();
|
|
|
|
m_hmdlMeta = {};
|
|
|
|
m_shaders.clear();
|
|
|
|
}
|
2015-08-21 00:06:39 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|