MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / DoCullSort

Method DoCullSort

GTE/Samples/SceneGraphs/BspNodes/BspNodesWindow3.cpp:309–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void BspNodesWindow3::DoCullSort()
310{
311 mCuller.ComputeVisibleSet(mCamera, mScene);
312 mPVWMatrices.Update(mCuller.GetVisibleSet());
313
314 mVisibleOpaque.clear();
315 mVisibleNoCullWire.clear();
316
317 for (auto const& visual : mCuller.GetVisibleSet())
318 {
319 if (mVisualOpaque.find(visual) != mVisualOpaque.end())
320 {
321 mVisibleOpaque.push_back(visual);
322 }
323 else
324 {
325 mVisibleNoCullWire.push_back(visual);
326 }
327 }
328}
329
330std::shared_ptr<BspNode> BspNodesWindow3::CreateNode(int32_t i,
331 Vector2<float> const& v0, Vector2<float> const& v1,

Callers

nothing calls this directly

Calls 4

ComputeVisibleSetMethod · 0.80
endMethod · 0.80
UpdateMethod · 0.45
GetVisibleSetMethod · 0.45

Tested by

no test coverage detected