| 245 | } |
| 246 | |
| 247 | olc::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 | |
| 257 | void olc::rcw::Engine::SetCamera(const olc::vf2d& pos, const float heading) |
nothing calls this directly
no outgoing calls
no test coverage detected