BVB Source Codes

CRYENGINE Show ITestModule.h Source code

Return Download CRYENGINE: download ITestModule.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __ITestModule_H__
  4. #define __ITestModule_H__
  5.  
  6. #if _MSC_VER > 1000
  7.         #pragma once
  8. #endif
  9.  
  10. typedef enum
  11. {
  12.         TM_NONE,
  13.         TM_GLOBAL,
  14.         TM_TIMEDEMO,
  15.         TM_LAST // leave this at last
  16. } ETestModuleType;
  17.  
  18. struct ITestModule
  19. {
  20.         virtual ~ITestModule(){}
  21.         virtual void            StartSession() = 0;
  22.         virtual void            StartRecording(IConsoleCmdArgs* pArgs) = 0;
  23.         virtual void            StopSession() = 0;
  24.         virtual void            PreUpdate() = 0;
  25.         virtual void            Update() = 0;
  26.         virtual void            Record(bool enable) = 0;
  27.         virtual void            Play(bool enable) = 0;
  28.         virtual void            PlayInit(IConsoleCmdArgs* pArgs) = 0;
  29.         virtual void            Pause(bool paused) = 0;
  30.         virtual bool            RecordFrame() = 0;
  31.         virtual bool            PlayFrame() = 0;
  32.         virtual void            Restart() = 0;
  33.         virtual float           RenderInfo(float y = 0) = 0;
  34.         virtual ETestModuleType GetType() const = 0;
  35.         virtual void            ParseParams(XmlNodeRef node) = 0;
  36.         virtual void            SetVariable(const char* name, const char* szValue) = 0;
  37.         virtual void            SetVariable(const char* name, float value) = 0;
  38.         virtual int             GetNumberOfFrames() = 0;
  39.         virtual int             GetTotalPolysRecorded() = 0;
  40.         virtual void            EndLog() = 0;
  41.         virtual void            GetMemoryUsage(ICrySizer* s) const = 0;
  42.         // common stuff
  43.         bool                    m_bEnabled;
  44.         void Enable(bool en)   { m_bEnabled = en; }
  45.         bool IsEnabled() const { return m_bEnabled; }
  46. };
  47.  
  48. #endif //__ITestModule_H__
  49.  
downloadITestModule.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