BVB Source Codes

CRYENGINE Show ScriptBind_MaterialEffects.h Source code

Return Download CRYENGINE: download ScriptBind_MaterialEffects.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:   ScriptBind_MaterialEffects.cpp
  5. //  Version:     v1.00
  6. //  Created:     03/22/2007 by MichaelR
  7. //  Compilers:   Visual Studio.NET
  8. //  Description: MaterialEffects ScriptBind
  9. // -------------------------------------------------------------------------
  10. //  History:
  11. //
  12. ////////////////////////////////////////////////////////////////////////////
  13. #ifndef __SCRIPTBIND_MaterialEffects_H__
  14. #define __SCRIPTBIND_MaterialEffects_H__
  15.  
  16. #if _MSC_VER > 1000
  17.         #pragma once
  18. #endif
  19.  
  20. #include <CryScriptSystem/IScriptSystem.h>
  21. #include <CryScriptSystem/ScriptHelpers.h>
  22.  
  23. class CMaterialEffects;
  24.  
  25. class CScriptBind_MaterialEffects : public CScriptableBase
  26. {
  27. public:
  28.         CScriptBind_MaterialEffects(ISystem* pSystem, CMaterialEffects* pDS);
  29.         virtual ~CScriptBind_MaterialEffects();
  30.  
  31.         void         Release() { delete this; };
  32.  
  33.         virtual void GetMemoryUsage(ICrySizer* pSizer) const
  34.         {
  35.                 pSizer->AddObject(this, sizeof(*this));
  36.         }
  37. private:
  38.         void RegisterGlobals();
  39.         void RegisterMethods();
  40.  
  41.         int  GetEffectId(IFunctionHandler* pH, const char* customName, int surfaceIndex2);
  42.         int  GetEffectIdByLibName(IFunctionHandler* pH, const char* LibName, const char* FGFXName);
  43.         int  PrintEffectIdByMatIndex(IFunctionHandler* pH, int materialIndex1, int materialIndex2);
  44.         int  ExecuteEffect(IFunctionHandler* pH, int effectId, SmartScriptTable paramsTable);
  45.  
  46. private:
  47.         ISystem*          m_pSystem;
  48.         CMaterialEffects* m_pMFX;
  49. };
  50.  
  51. #endif //__SCRIPTBIND_MaterialEffects_H__
  52.  
downloadScriptBind_MaterialEffects.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