finish of renderer refactor
This commit is contained in:
@@ -47,6 +47,9 @@ class StaPipCore {
|
||||
*/
|
||||
void reinitVU1Programs();
|
||||
|
||||
void allocateOnUse() { qbufferRenderer.allocateOnUse(); }
|
||||
void deallocateOnUse() { qbufferRenderer.deallocateOnUse(); }
|
||||
|
||||
private:
|
||||
u32 maxVertCount;
|
||||
RendererCore* rendererCore;
|
||||
|
||||
@@ -65,6 +65,9 @@ class StaPipQBufferRenderer {
|
||||
|
||||
const u16& getBufferSize() { return bufferSize; }
|
||||
|
||||
void allocateOnUse();
|
||||
void deallocateOnUse();
|
||||
|
||||
private:
|
||||
bool is1stDBufferFlushTime();
|
||||
bool is2ndDBufferFlushTime();
|
||||
@@ -74,6 +77,7 @@ class StaPipQBufferRenderer {
|
||||
void uploadPrograms();
|
||||
void setDoubleBuffer();
|
||||
u16 getQBufferIndex(StaPipQBuffer* buffer);
|
||||
u16 qbuffersPacketSize;
|
||||
|
||||
static const u16 buffersCount;
|
||||
|
||||
@@ -88,7 +92,7 @@ class StaPipQBufferRenderer {
|
||||
packet2_t* programsPacket;
|
||||
|
||||
packet2_t** packets;
|
||||
StaPipVU1Program** programs; // dbuffer
|
||||
StaPipVU1Program** dBufferPrograms;
|
||||
StaPipQBuffer** buffers;
|
||||
packet2_t* currentPacket;
|
||||
packet2_t* staticDataPacket;
|
||||
|
||||
@@ -35,10 +35,12 @@ class StaticPipeline : public Renderer3DPipeline {
|
||||
|
||||
StaPipCore core;
|
||||
|
||||
void init(RendererCore* core);
|
||||
void setRenderer(RendererCore* core);
|
||||
|
||||
void onUse();
|
||||
|
||||
void onUseEnd();
|
||||
|
||||
/**
|
||||
* Render static model
|
||||
* This render() method is a bridge to core.render() method.
|
||||
|
||||
Reference in New Issue
Block a user