MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / ProcessCam

Method ProcessCam

ogsr_engine/xr_3da/FDemoRecord.cpp:273–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273BOOL 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

Callers

nothing calls this directly

Calls 12

color_rgbaFunction · 0.85
iGetAsyncKeyStateMethod · 0.80
OutSetIMethod · 0.80
OutNextMethod · 0.80
setHPBMethod · 0.80
translate_overMethod · 0.80
setMethod · 0.45
SetColorMethod · 0.45
lerpMethod · 0.45
mulMethod · 0.45
normalize_safeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected