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

Method OnGetVisibleSet

GTE/Graphics/Spatial.cpp:38–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void Spatial::OnGetVisibleSet(Culler& culler, std::shared_ptr<Camera> const& camera,
39 bool noCull)
40{
41 if (culling == CullingMode::ALWAYS)
42 {
43 return;
44 }
45
46 if (culling == CullingMode::NEVER)
47 {
48 noCull = true;
49 }
50
51 uint32_t savePlaneState = culler.GetPlaneState();
52 if (noCull || culler.IsVisible(worldBound))
53 {
54 GetVisibleSet(culler, camera, noCull);
55 }
56 culler.SetPlaneState(savePlaneState);
57}
58
59void Spatial::UpdateWorldData(double applicationTime)
60{

Callers 4

GetVisibleSetMethod · 0.80
GetVisibleSetMethod · 0.80
GetVisibleSetMethod · 0.80
ComputeVisibleSetMethod · 0.80

Calls 3

GetPlaneStateMethod · 0.80
IsVisibleMethod · 0.80
SetPlaneStateMethod · 0.80

Tested by

no test coverage detected