BVB Source Codes

CRYENGINE Show MFXDecalEffect.h Source code

Return Download CRYENGINE: download MFXDecalEffect.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:   IMFXEffect.h
  5. //  Version:     v1.00
  6. //  Created:     28/11/2006 by JohnN/AlexL
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: Decal effect
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13. #ifndef __MFXDECALEFFECT_H__
  14. #define __MFXDECALEFFECT_H__
  15.  
  16. #pragma once
  17.  
  18. #include "MFXEffectBase.h"
  19.  
  20. struct SMFXDecalParams
  21. {
  22.         string material;
  23.         float  minscale;
  24.         float  maxscale;
  25.         float  rotation;
  26.         float  lifetime;
  27.         float  growTime;
  28.         bool   assemble;
  29.         bool   forceedge;
  30.  
  31.         SMFXDecalParams()
  32.                 : minscale(0.0f)
  33.                 , maxscale(0.0f)
  34.                 , rotation(0.0f)
  35.                 , lifetime(0.0f)
  36.                 , growTime(0.0f)
  37.                 , assemble(false)
  38.                 , forceedge(false)
  39.         {}
  40. };
  41.  
  42. class CMFXDecalEffect :
  43.         public CMFXEffectBase
  44. {
  45. public:
  46.         CMFXDecalEffect();
  47.         virtual ~CMFXDecalEffect();
  48.  
  49.         // IMFXEffect
  50.         virtual void Execute(const SMFXRunTimeEffectParams& params) override;
  51.         virtual void LoadParamsFromXml(const XmlNodeRef& paramsNode) override;
  52.         virtual void GetResources(SMFXResourceList& resourceList) const override;
  53.         virtual void PreLoadAssets() override;
  54.         virtual void ReleasePreLoadAssets() override;
  55.         virtual void GetMemoryUsage(ICrySizer* pSizer) const override;
  56.         //~IMFXEffect
  57.  
  58. private:
  59.  
  60.         void ReleaseMaterial();
  61.  
  62.         SMFXDecalParams       m_decalParams;
  63.         _smart_ptr<IMaterial> m_material;
  64. };
  65.  
  66. #endif
  67.  
downloadMFXDecalEffect.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