lod, prim refactor

This commit is contained in:
h4570
2022-07-30 23:51:22 +02:00
parent 927c10e82a
commit bc1ac1b4a3
23 changed files with 194 additions and 67 deletions
@@ -51,6 +51,12 @@ class StaPipCore {
void deallocateOnUse() { qbufferRenderer.deallocateOnUse(); }
private:
void setPrim();
void setLod();
prim_t prim;
lod_t lod;
u32 maxVertCount;
RendererCore* rendererCore;
@@ -33,7 +33,7 @@ class StaPipQBufferRenderer {
StaPipQBufferRenderer();
~StaPipQBufferRenderer();
void init(RendererCore* t_core);
void init(RendererCore* t_core, prim_t* prim, lod_t* lod);
void reinitVU1();
@@ -69,6 +69,9 @@ class StaPipQBufferRenderer {
void deallocateOnUse();
private:
prim_t* prim;
lod_t* lod;
bool is1stDBufferFlushTime();
bool is2ndDBufferFlushTime();