BVB Source Codes

CRYENGINE Show MFXRandomEffect.h Source code

Return Download CRYENGINE: download MFXRandomEffect.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:   MFXRandomEffect.h
  5. //  Version:     v1.00
  6. //  Created:     28/11/2006 by JohnN/AlexL
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: Random effect (randomly plays one of its child effects)
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13. #ifndef __MFXRANDOMEFFECT_H__
  14. #define __MFXRANDOMEFFECT_H__
  15.  
  16. #pragma once
  17.  
  18. #include "MFXEffectBase.h"
  19. #include "MFXContainer.h"
  20.  
  21. class CMFXRandomizerContainer
  22.         : public CMFXContainer
  23. {
  24. public:
  25.         void ExecuteRandomizedEffects(const SMFXRunTimeEffectParams& params);
  26.  
  27. private:
  28.         TMFXEffectBasePtr ChooseCandidate(const SMFXRunTimeEffectParams& params) const;
  29. };
  30.  
  31. class CMFXRandomEffect :
  32.         public CMFXEffectBase
  33. {
  34.  
  35. public:
  36.         CMFXRandomEffect();
  37.         virtual ~CMFXRandomEffect();
  38.  
  39.         //IMFXEffect
  40.         virtual void Execute(const SMFXRunTimeEffectParams& params) override;
  41.         virtual void LoadParamsFromXml(const XmlNodeRef& paramsNode) override;
  42.         virtual void SetCustomParameter(const char* customParameter, const SMFXCustomParamValue& customParameterValue) override;
  43.         virtual void GetResources(SMFXResourceList& resourceList) const override;
  44.         virtual void PreLoadAssets() override;
  45.         virtual void ReleasePreLoadAssets() override;
  46.         virtual void GetMemoryUsage(ICrySizer* pSizer) const override;
  47.         //~IMFXEffect
  48.  
  49. private:
  50.         CMFXRandomizerContainer m_container;
  51. };
  52.  
  53. #endif
  54.  
downloadMFXRandomEffect.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