BVB Source Codes

CRYENGINE Show MFXForceFeedbackFX.h Source code

Return Download CRYENGINE: download MFXForceFeedbackFX.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:   MFXForceFeedbackEffect.h
  5. //  Version:     v1.00
  6. //  Created:     8/4/2010 by Benito Gangoso Rodriguez
  7. // -------------------------------------------------------------------------
  8. //  History:
  9. //
  10. ////////////////////////////////////////////////////////////////////////////
  11.  
  12. #pragma once
  13.  
  14. #ifndef __MFXFORCEFEEDBACKEFFECT_H__
  15.         #define __MFXFORCEFEEDBACKEFFECT_H__
  16.  
  17.         #include "MFXEffectBase.h"
  18.  
  19. struct SMFXForceFeedbackParams
  20. {
  21.         string forceFeedbackEventName;
  22.         float  intensityFallOffMinDistanceSqr;
  23.         float  intensityFallOffMaxDistanceSqr;
  24.  
  25.         SMFXForceFeedbackParams()
  26.                 : intensityFallOffMinDistanceSqr(0.0f)
  27.                 , intensityFallOffMaxDistanceSqr(25.0f)
  28.         {
  29.  
  30.         }
  31. };
  32.  
  33. class CMFXForceFeedbackEffect :
  34.         public CMFXEffectBase
  35. {
  36. public:
  37.         CMFXForceFeedbackEffect();
  38.         virtual ~CMFXForceFeedbackEffect();
  39.  
  40.         //IMFXEffect
  41.         virtual void Execute(const SMFXRunTimeEffectParams& params) override;
  42.         virtual void LoadParamsFromXml(const XmlNodeRef& paramsNode) override;
  43.         virtual void GetResources(SMFXResourceList& resourceList) const override;
  44.         virtual void GetMemoryUsage(ICrySizer* pSizer) const override;
  45.         //~IMFXEffect
  46.  
  47. protected:
  48.         SMFXForceFeedbackParams m_forceFeedbackParams;
  49. };
  50.  
  51. #endif
  52.  
downloadMFXForceFeedbackFX.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