| 271 | } |
| 272 | |
| 273 | BOOL CDemoRecord::ProcessCam(SCamEffectorInfo& info) |
| 274 | { |
| 275 | info.dont_apply = false; |
| 276 | //if (!file) |
| 277 | // return TRUE; |
| 278 | |
| 279 | if (m_bMakeScreenshot) |
| 280 | { |
| 281 | MakeScreenshotFace(); |
| 282 | |
| 283 | // update camera |
| 284 | info.n.set(m_Camera.j); |
| 285 | info.d.set(m_Camera.k); |
| 286 | info.p.set(m_Camera.c); |
| 287 | } |
| 288 | else if (m_bMakeLevelMap) |
| 289 | { |
| 290 | MakeLevelMapProcess(); |
| 291 | |
| 292 | info.dont_apply = true; |
| 293 | } |
| 294 | else if (m_bMakeCubeMap) |
| 295 | { |
| 296 | MakeCubeMapFace(info.d, info.n); |
| 297 | |
| 298 | info.p.set(m_Camera.c); |
| 299 | info.fAspect = 1.f; |
| 300 | } |
| 301 | else |
| 302 | { |
| 303 | if (pInput->iGetAsyncKeyState(DIK_F1)) |
| 304 | { |
| 305 | pFontSystem->SetColor(color_rgba(255, 0, 0, 255)); |
| 306 | pFontSystem->SetAligment(CGameFont::alCenter); |
| 307 | pFontSystem->OutSetI(0, -.05f); |
| 308 | pFontSystem->OutNext("%s", "RECORDING"); |
| 309 | pFontSystem->OutNext("Key frames count: %d", iCount); |
| 310 | pFontSystem->SetAligment(CGameFont::alLeft); |
| 311 | pFontSystem->OutSetI(-0.2f, +.05f); |
| 312 | pFontSystem->OutNext("SPACE"); |
| 313 | pFontSystem->OutNext("BACK"); |
| 314 | pFontSystem->OutNext("ESC"); |
| 315 | pFontSystem->OutNext("F11"); |
| 316 | pFontSystem->OutNext("LCONTROL+F11"); |
| 317 | pFontSystem->OutNext("F12"); |
| 318 | pFontSystem->SetAligment(CGameFont::alLeft); |
| 319 | pFontSystem->OutSetI(0, +.05f); |
| 320 | pFontSystem->OutNext("= Append Key"); |
| 321 | pFontSystem->OutNext("= Cube Map"); |
| 322 | pFontSystem->OutNext("= Quit"); |
| 323 | pFontSystem->OutNext("= Level Map ScreenShot"); |
| 324 | pFontSystem->OutNext("= Level Map ScreenShot(High Quality)"); |
| 325 | pFontSystem->OutNext("= ScreenShot"); |
| 326 | } |
| 327 | |
| 328 | m_vVelocity.lerp(m_vVelocity, m_vT, 0.3f); |
| 329 | m_vAngularVelocity.lerp(m_vAngularVelocity, m_vR, 0.3f); |
| 330 |
nothing calls this directly
no test coverage detected