metaforce/Runtime/Graphics/CMetroidModelInstance.hpp

44 lines
915 B
C++
Raw Normal View History

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
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;
friend class CGameArea;
2016-07-26 22:05:59 +00:00
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;
2018-10-07 02:59:17 +00:00
std::unordered_map<int, CModelShaders::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;
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
};
}