BVB Source Codes

CRYENGINE Show ITimeDemoRecorder.h Source code

Return Download CRYENGINE: download ITimeDemoRecorder.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description:
  8.    Provides interface for TimeDemo (CryAction)
  9.    Can attach listener to perform game specific stuff on Record/Play
  10.    -------------------------------------------------------------------------
  11.    History:
  12.    - May 06, 2015:      Created by Pascal Kross
  13.  
  14. *************************************************************************/
  15.  
  16. #ifndef __ITIMEDEMORECORDER_H__
  17. #define __ITIMEDEMORECORDER_H__
  18.  
  19. #pragma once
  20.  
  21. struct STimeDemoFrameRecord
  22. {
  23.         Vec3 playerPosition;
  24.         Quat playerRotation;
  25.         Quat playerViewRotation;
  26.         Vec3 hmdPositionOffset;
  27.         Quat hmdViewRotation;
  28. };
  29.  
  30. struct ITimeDemoListener
  31. {
  32.         virtual ~ITimeDemoListener(){}
  33.         virtual void OnRecord(bool bEnable) = 0;
  34.         virtual void OnPlayback(bool bEnable) = 0;
  35.         virtual void OnPlayFrame() = 0;
  36. };
  37.  
  38. struct ITimeDemoRecorder
  39. {
  40.         virtual ~ITimeDemoRecorder(){}
  41.  
  42.         virtual bool IsRecording() const = 0;
  43.         virtual bool IsPlaying() const = 0;
  44.  
  45.         virtual void RegisterListener(ITimeDemoListener* pListener) = 0;
  46.         virtual void UnregisterListener(ITimeDemoListener* pListener) = 0;
  47.         virtual void GetCurrentFrameRecord(STimeDemoFrameRecord& record) const = 0;
  48. };
  49.  
  50. #endif //__ITIMEDEMORECORDER_H__
  51.  
downloadITimeDemoRecorder.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top