MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / SetWorldBoundary

Method SetWorldBoundary

examples/TEST_Camera2D.cpp:138–142  ·  view source on GitHub ↗

Set world boundary rectangle

Source from the content-addressed store, hash-verified

136
137 // Set world boundary rectangle
138 inline void SetWorldBoundary(const olc::vf2d& vPos, const olc::vf2d& vSize)
139 {
140 m_vWorldBoundaryPos = vPos;
141 m_vWorldBoundarySize = vSize;
142 }
143
144 // Instruct camera to respect world boundaries
145 inline void EnableWorldBoundary(const bool bEnable)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected