History

use references not pointers for ViewFrustums

also unravelling some spaghetti: (1) split Octree stuff out of ViewFrustum (2) moved ViewFrustum from octree to shared lib (3) removed some cruft

Andrew Meadows committed 10 years ago

Commit bcf2cc81 parent 21fa29446 files · +412 −390Browse files

Showing the changes to libraries/render/src/render/DrawStatus.cpp (1 of 46 files). Show all

Unified · Split

libraries/render/src/render/DrawStatus.cpp+3−3
@@ -107,7 +107,7 @@ void DrawStatus::run(const SceneContextPointer& sceneContext, · 106 unmodified lines
107 const RenderContextPointer& renderContext,107 const RenderContextPointer& renderContext,
108 const ItemBounds& inItems) {108 const ItemBounds& inItems) {
109 assert(renderContext->args);109 assert(renderContext->args);
110 assert(renderContext->args->_viewFrustum);110 assert(renderContext->args->hasViewFrustum());
111 RenderArgs* args = renderContext->args;111 RenderArgs* args = renderContext->args;
112 auto& scene = sceneContext->_scene;112 auto& scene = sceneContext->_scene;
113 const int NUM_STATUS_VEC4_PER_ITEM = 2;113 const int NUM_STATUS_VEC4_PER_ITEM = 2;
@@ -183,8 +183,8 @@ void DrawStatus::run(const SceneContextPointer& sceneContext, · 69 unmodified lines
183 gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {183 gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {
184 glm::mat4 projMat;184 glm::mat4 projMat;
185 Transform viewMat;185 Transform viewMat;
186 args->_viewFrustum->evalProjectionMatrix(projMat);186 args->getViewFrustum().evalProjectionMatrix(projMat);
187 args->_viewFrustum->evalViewTransform(viewMat);187 args->getViewFrustum().evalViewTransform(viewMat);
188 batch.setViewportTransform(args->_viewport);188 batch.setViewportTransform(args->_viewport);
189 189
190 batch.setProjectionTransform(projMat);190 batch.setProjectionTransform(projMat);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t