MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / GetViewPlanes

Function GetViewPlanes

src/lua/LuaSpatial.cpp:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143//============================================================================//
144
145static bool GetViewPlanes(PlanesData& planes) {
146 planes.planes.clear();
147 const ViewFrustum& vf = RENDERER.getViewFrustum();
148 for (int p = 0; p < vf.getPlaneCount(); p++) {
149 planes.planes.push_back(vf.getSide(p));
150 }
151 return true;
152}
153
154
155static bool GetRadarBox(BoxData& box) {

Callers 3

GetVisiblePlayersMethod · 0.85
GetVisibleFlagsMethod · 0.85
GetVisibleShotsMethod · 0.85

Calls 3

getPlaneCountMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected