mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
Tons of DrawWorld-related implementations
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include "CDecalManager.hpp"
|
||||
#include "CDecalDescription.hpp"
|
||||
#include "CDecal.hpp"
|
||||
#include "CStateManager.hpp"
|
||||
#include "Graphics/CBooRenderer.hpp"
|
||||
#include "GameGlobalObjects.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
@@ -32,4 +35,19 @@ void CDecalManager::Shutdown()
|
||||
|
||||
}
|
||||
|
||||
void CDecalManager::AddToRenderer(const zeus::CFrustum& frustum, const CStateManager& mgr)
|
||||
{
|
||||
for (s32 idx : m_ActiveIndexList)
|
||||
{
|
||||
CDecalManager::SDecal& decal = m_DecalPool[idx];
|
||||
if (decal.x75_flags & 0x2 || mgr.GetParticleFlags())
|
||||
{
|
||||
const zeus::CVector3f& point = decal.x0_decal->xc_transform.origin;
|
||||
zeus::CAABox aabb(point, point);
|
||||
g_Renderer->AddDrawable(&*decal.x0_decal, point, aabb, 2,
|
||||
IRenderer::EDrawableSorting::SortedCallback);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user