finish of renderer refactor
This commit is contained in:
@@ -25,7 +25,7 @@ class DynPipCore {
|
||||
|
||||
DynPipProgramsRepository repository;
|
||||
|
||||
void init(RendererCore* t_core, const u32& t_packetSize);
|
||||
void init(RendererCore* t_core);
|
||||
|
||||
/** Force starting VU1 program instead of continueing */
|
||||
void clear() { qbufferRenderer.clearLastProgramName(); }
|
||||
@@ -52,6 +52,11 @@ class DynPipCore {
|
||||
*/
|
||||
void reinitVU1Programs();
|
||||
|
||||
void allocateOnUse(const u32& t_packetSize) {
|
||||
qbufferRenderer.allocateOnUse(t_packetSize);
|
||||
}
|
||||
void deallocateOnUse() { qbufferRenderer.deallocateOnUse(); }
|
||||
|
||||
private:
|
||||
M4x4 mvp;
|
||||
RendererCore* rendererCore;
|
||||
|
||||
@@ -21,8 +21,7 @@ class DynPipRenderer {
|
||||
DynPipRenderer();
|
||||
~DynPipRenderer();
|
||||
|
||||
void init(RendererCore* t_core, DynPipProgramsRepository* t_programRepo,
|
||||
const u32& t_packetSize);
|
||||
void init(RendererCore* t_core, DynPipProgramsRepository* t_programRepo);
|
||||
|
||||
void reinitVU1();
|
||||
|
||||
@@ -35,6 +34,9 @@ class DynPipRenderer {
|
||||
|
||||
const u16& getBufferSize() { return bufferSize; }
|
||||
|
||||
void allocateOnUse(const u32& t_packetSize);
|
||||
void deallocateOnUse();
|
||||
|
||||
private:
|
||||
void sendStaticData() const;
|
||||
void setProgramsCache();
|
||||
|
||||
@@ -35,10 +35,12 @@ class DynamicPipeline : public Renderer3DPipeline {
|
||||
|
||||
DynPipCore core;
|
||||
|
||||
void init(RendererCore* core);
|
||||
void setRenderer(RendererCore* core);
|
||||
|
||||
void onUse();
|
||||
|
||||
void onUseEnd();
|
||||
|
||||
/**
|
||||
* Render dynamic model.
|
||||
* This render() method is a bridge to core.render() method.
|
||||
|
||||
Reference in New Issue
Block a user