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

Method Engine

extensions/olcPGEX_RayCastWorld.h:247–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247olc::rcw::Engine::Engine(const int screen_w, const int screen_h, const float fov) :
248 vScreenSize(screen_w, screen_h),
249 vHalfScreenSize(screen_w / 2, screen_h / 2),
250 vFloatScreenSize(float(screen_w), float(screen_h))
251{
252 fFieldOfView = fov;
253 pDepthBuffer.reset(new float[vScreenSize.x * vScreenSize.y]);
254}
255
256
257void olc::rcw::Engine::SetCamera(const olc::vf2d& pos, const float heading)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected