broken ui system

This commit is contained in:
Jan Racek
2026-03-25 12:25:29 +01:00
parent 60a7063a17
commit f485ec36a8
14 changed files with 1309 additions and 18 deletions

View File

@@ -16,6 +16,7 @@
#include <psyqo/vector.hh>
#include "gtemath.hh"
#include "uisystem.hh"
using namespace psyqo::fixed_point_literals;
using namespace psyqo::trig_literals;
@@ -275,8 +276,10 @@ void psxsplash::Renderer::Render(eastl::vector<GameObject*>& objects) {
for (int i = 0; i < obj->polyCount; i++)
processTriangle(obj->polygons[i], fogFarSZ, ot, balloc);
}
if (m_uiSystem) m_uiSystem->renderOT(m_gpu, ot, balloc);
m_gpu.getNextClear(clear.primitive, m_clearcolor);
m_gpu.chain(clear); m_gpu.chain(ot);
if (m_uiSystem) m_uiSystem->renderText(m_gpu);
m_frameCount++;
}
@@ -307,8 +310,10 @@ void psxsplash::Renderer::RenderWithBVH(eastl::vector<GameObject*>& objects, con
}
processTriangle(obj->polygons[ref.triangleIndex], fogFarSZ, ot, balloc);
}
if (m_uiSystem) m_uiSystem->renderOT(m_gpu, ot, balloc);
m_gpu.getNextClear(clear.primitive, m_clearcolor);
m_gpu.chain(clear); m_gpu.chain(ot);
if (m_uiSystem) m_uiSystem->renderText(m_gpu);
m_frameCount++;
}
@@ -750,8 +755,10 @@ void psxsplash::Renderer::RenderWithRooms(eastl::vector<GameObject*>& objects,
}
#endif
if (m_uiSystem) m_uiSystem->renderOT(m_gpu, ot, balloc);
m_gpu.getNextClear(clear.primitive, m_clearcolor);
m_gpu.chain(clear); m_gpu.chain(ot);
if (m_uiSystem) m_uiSystem->renderText(m_gpu);
m_frameCount++;
}