metaforce/Runtime/Graphics/CMetroidModelInstance.hpp

46 lines
1.0 KiB
C++
Raw Normal View History

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"
#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;
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;
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;
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__