2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CMETROIDMODELINSTANCE_HPP__
|
|
|
|
#define __URDE_CMETROIDMODELINSTANCE_HPP__
|
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-10-22 06:11:22 +00:00
|
|
|
#include "hecl/Runtime.hpp"
|
2017-12-29 08:08:12 +00:00
|
|
|
#include "hecl/HMDLMeta.hpp"
|
2016-07-26 22:05:59 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-21 00:06:39 +00:00
|
|
|
{
|
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
|
|
|
|
|
|
|
class CMetroidModelInstance
|
|
|
|
{
|
2016-07-26 22:05:59 +00:00
|
|
|
friend class CBooRenderer;
|
2017-04-18 23:41:01 +00:00
|
|
|
friend class CGameArea;
|
2016-07-26 22:05:59 +00:00
|
|
|
|
|
|
|
int x0_visorFlags;
|
|
|
|
zeus::CTransform x4_xf;
|
|
|
|
zeus::CAABox x34_aabb;
|
2017-04-18 23:41:01 +00:00
|
|
|
std::vector<CBooSurface> m_surfaces;
|
|
|
|
std::unique_ptr<CBooModel> m_instance;
|
2017-10-22 06:11:22 +00:00
|
|
|
hecl::HMDLMeta m_hmdlMeta;
|
2017-11-21 10:36:18 +00:00
|
|
|
std::unordered_map<int, std::shared_ptr<hecl::Runtime::ShaderPipelines>> m_shaders;
|
2016-07-26 22:05:59 +00:00
|
|
|
public:
|
2017-04-22 06:42:32 +00:00
|
|
|
CMetroidModelInstance() = default;
|
|
|
|
CMetroidModelInstance(CMetroidModelInstance&&) = default;
|
2017-10-22 06:11:22 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CMETROIDMODELINSTANCE_HPP__
|