BVB Source Codes

CRYENGINE Show MFXFlowGraphEffect.h Source code

Return Download CRYENGINE: download MFXFlowGraphEffect.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:   MFXFlowGraphEffect.h
  5. //  Version:     v1.00
  6. //  Created:     29/11/2006 by AlexL-Benito GR
  7. //  Compilers:   Visual Studio.NET
  8. //  Description:
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13. #ifndef __MFXFLOWGRAPHEFFECT_H__
  14. #define __MFXFLOWGRAPHEFFECT_H__
  15.  
  16. #pragma once
  17.  
  18. #include "MFXEffectBase.h"
  19.  
  20. struct SMFXFlowGraphParams
  21. {
  22.         static const int MAX_CUSTOM_PARAMS = 4;
  23.         string           fgName;
  24.         float            maxdistSq; // max distance (squared) for spawning this effect
  25.         float            params[MAX_CUSTOM_PARAMS];
  26.  
  27.         SMFXFlowGraphParams()
  28.         {
  29.                 maxdistSq = 0.0f;
  30.                 memset(&params, 0, sizeof(params));
  31.         }
  32. };
  33.  
  34. class CMFXFlowGraphEffect :
  35.         public CMFXEffectBase
  36. {
  37. public:
  38.         CMFXFlowGraphEffect();
  39.         virtual ~CMFXFlowGraphEffect();
  40.  
  41.         //IMFXEffect
  42.         virtual void Execute(const SMFXRunTimeEffectParams& params) override;
  43.         virtual void LoadParamsFromXml(const XmlNodeRef& paramsNode) override;
  44.         virtual void SetCustomParameter(const char* customParameter, const SMFXCustomParamValue& customParameterValue) override;
  45.         virtual void GetResources(SMFXResourceList& resourceList) const override;
  46.         virtual void GetMemoryUsage(ICrySizer* pSizer) const override;
  47.         //~IMFXEffect
  48.  
  49. private:
  50.         SMFXFlowGraphParams m_flowGraphParams;
  51. };
  52.  
  53. #endif
  54.  
downloadMFXFlowGraphEffect.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