Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Managers/RenderPassManager.cpp

Diff revisions: vs.
  @@ -1,5 +1,6 @@
1 1 #include "Headers/RenderPassManager.h"
2 2 #include "Rendering/RenderPass/Headers/RenderPass.h"
3 + #include "Rendering/RenderPass/Headers/RenderQueue.h"
3 4
4 5 struct RenderPassCallOrder{
5 6 bool operator()(const RenderPassItem& a, const RenderPassItem& b) const {
  @@ -7,15 +8,21 @@
7 8 }
8 9 };
9 10
11 + RenderPassManager::RenderPassManager()
12 + {
13 + RenderQueue::createInstance();
14 + }
15 +
10 16 RenderPassManager::~RenderPassManager()
11 17 {
12 18 for_each(RenderPassItem& rpi, _renderPasses){
13 19 SAFE_DELETE(rpi._rp);
14 20 }
15 21 _renderPasses.clear();
22 + RenderQueue::DestroyInstance();
16 23 }
17 24
18 - void RenderPassManager::render(SceneRenderState* const sceneRenderState) {
25 + void RenderPassManager::render(const SceneRenderState& sceneRenderState) {
19 26 for_each(RenderPassItem& rpi, _renderPasses){
20 27 rpi._rp->render(sceneRenderState);
21 28 }
  @@ -51,7 +58,7 @@
51 58 }
52 59 }
53 60
54 - U16 RenderPassManager::getLastTotalBinSize(U8 renderPassId){
61 + U16 RenderPassManager::getLastTotalBinSize(U8 renderPassId) const {
55 62 if(renderPassId < _renderPasses.size()){
56 63 return _renderPasses[renderPassId]._rp->getLasTotalBinSize();
57 64 }