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

Method ComputeVisibleSet

GTE/Graphics/Culler.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void Culler::ComputeVisibleSet(std::shared_ptr<Camera> const& camera,
55 std::shared_ptr<Spatial> const& scene)
56{
57 LogAssert(scene != nullptr, "A scene is required for culling.");
58 PushViewFrustumPlanes(camera);
59 mVisibleSet.clear();
60 scene->OnGetVisibleSet(*this, camera, false);
61}
62
63bool Culler::IsVisible(BoundingSphere<float> const& sphere)
64{

Callers 15

UpdateFacesMethod · 0.80
CubeMapsWindow3Method · 0.80
OnIdleMethod · 0.80
SwitchNodesWindow3Method · 0.80
OnIdleMethod · 0.80
OnCharPressMethod · 0.80
CastleWindow3Method · 0.80
OnIdleMethod · 0.80
BillboardNodesWindow3Method · 0.80
OnIdleMethod · 0.80
OnMouseMotionMethod · 0.80
DoCullSortMethod · 0.80

Calls 1

OnGetVisibleSetMethod · 0.80

Tested by

no test coverage detected