BVB Source Codes

CRYENGINE Show SubtitleManager.h Source code

Return Download CRYENGINE: download SubtitleManager.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  File name:   SubtitleManager.h
  5. //  Version:     v1.00
  6. //  Created:     29/01/2007 by AlexL.
  7. //  Compilers:   Visual Studio.NET 2005
  8. //  Description: Subtitle Manager Implementation
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13.  
  14. #ifndef __SUBTITLEMANAGER_H__
  15. #define __SUBTITLEMANAGER_H__
  16. #pragma once
  17.  
  18. #include "ISubtitleManager.h"
  19.  
  20. class CSubtitleManager : public ISubtitleManager
  21. {
  22. public:
  23.         CSubtitleManager();
  24.         virtual ~CSubtitleManager();
  25.  
  26.         // ISubtitleManager
  27.         virtual void SetHandler(ISubtitleHandler* pHandler) { m_pHandler = pHandler; }
  28.         virtual void SetEnabled(bool bEnabled);
  29.         virtual void SetAutoMode(bool bOn);
  30.         virtual void ShowSubtitle(const char* subtitleLabel, bool bShow);
  31.         // ~ISubtitleManager
  32.  
  33.         static void OnAudioTriggerStarted(const SAudioRequestInfo* const pAudioRequestInfo);
  34.         static void OnAudioTriggerFinished(const SAudioRequestInfo* const pAudioRequestInfo);
  35.  
  36. protected:
  37.         void ShowSubtitle(const SAudioRequestInfo* const pAudioRequestInfo, bool bShow);
  38.  
  39.         ISubtitleHandler*        m_pHandler;
  40.         bool                     m_bEnabled;
  41.         bool                     m_bAutoMode;
  42.  
  43.         static CSubtitleManager* s_Instance;
  44. };
  45.  
  46. #endif // __SUBTITLEMANAGER_H__
  47.  
downloadSubtitleManager.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