BVB Source Codes

CRYENGINE Show MaterialEffectsCVars.h Source code

Return Download CRYENGINE: download MaterialEffectsCVars.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: CVars for the MaterialEffects subsystem
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - 02:03:2006  12:00 : Created by AlexL
  11.  
  12. *************************************************************************/
  13.  
  14. #ifndef __MATERIALEFFECTS_CVARS_H__
  15. #define __MATERIALEFFECTS_CVARS_H__
  16.  
  17. #pragma once
  18.  
  19. struct ICVar;
  20.  
  21. class CMaterialEffectsCVars
  22. {
  23. public:
  24.  
  25.         float  mfx_ParticleImpactThresh;    // "Impact threshold for particle effects. Default: 1.38" );
  26.         float  mfx_SoundImpactThresh;       //"Impact threshold for sound effects. Default: 1.5" );
  27.         float  mfx_RaisedSoundImpactThresh; // "Impact threshold for sound effects if we're rolling. Default: 3.5" );
  28.         int    mfx_Debug;                   // "Turns on MaterialEffects debug messages." );
  29.         int    mfx_DebugFlowGraphFX;        // "Turns on MaterialEffects FlowGraph FX debbug messages." );
  30.         int    mfx_DebugVisual;
  31.         ICVar* mfx_DebugVisualFilter;
  32.         int    mfx_Enable;
  33.         int    mfx_EnableFGEffects;
  34.         int    mfx_EnableAttachedEffects;
  35.         int    mfx_SerializeFGEffects;     // "Serialize Material Effect based effects. Default: On"
  36.         float  mfx_pfx_maxDist;
  37.         float  mfx_pfx_maxScale;
  38.         float  mfx_pfx_minScale;
  39.  
  40.         // Timeout avoids playing effects too often.
  41.         // Effects should still be played at lower velocities, but not too often
  42.         // as they cannot be distinguished when played too close together and are slowing down the system.
  43.         // Therefore a tweakeable timeout
  44.         float mfx_Timeout;
  45.  
  46.         static inline CMaterialEffectsCVars& Get()
  47.         {
  48.                 assert(s_pThis != 0);
  49.                 return *s_pThis;
  50.         }
  51.  
  52. private:
  53.         friend class CCryAction; // Our only creator
  54.  
  55.         CMaterialEffectsCVars(); // singleton stuff
  56.         ~CMaterialEffectsCVars();
  57.         CMaterialEffectsCVars(const CMaterialEffectsCVars&);
  58.         CMaterialEffectsCVars& operator=(const CMaterialEffectsCVars&);
  59.  
  60.         static CMaterialEffectsCVars* s_pThis;
  61. };
  62.  
  63. #endif // __MATERIALEFFECTS_CVARS_H__
  64.  
downloadMaterialEffectsCVars.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