Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 152 vs 168 for /trunk/Source Code/Rendering/RenderPass/RenderPass.cpp

Diff revisions: vs.
  @@ -16,7 +16,7 @@
16 16 {
17 17 }
18 18
19 - void RenderPass::render(SceneRenderState* const sceneRenderState){
19 + void RenderPass::render(const SceneRenderState& renderState) {
20 20 const RenderStage& currentStage = GFX_DEVICE.getRenderStage();
21 21 RenderQueue& renderQueue = RenderQueue::getInstance();
22 22 //Sort the render queue by the specified key
  @@ -25,7 +25,7 @@
25 25 _lastTotalBinSize = renderQueue.getRenderQueueStackSize();
26 26 //Draw the entire queue;
27 27 //Limited to 65536 (2^16) items per queue pass!
28 - if(sceneRenderState->drawObjects()){
28 + if(renderState.drawObjects()){
29 29 for(U16 i = 0; i < renderBinCount; i++){
30 30 renderQueue.getBinSorted(i)->render(currentStage);
31 31 }
  @@ -37,7 +37,7 @@
37 37 for(U16 i = 0; i < renderBinCount; i++){
38 38 renderQueue.getBinSorted(i)->postRender();
39 39 }
40 - SceneGraphNode* root = GET_ACTIVE_SCENE()->getSceneGraph()->getRoot();
40 + SceneGraphNode* root = GET_ACTIVE_SCENEGRAPH()->getRoot();
41 41 root->getNode<SceneNode>()->preFrameDrawEnd(root);
42 42 }
43 43