BVB Source Codes

CRYENGINE Show PostProcessEffects.cpp Source code

Return Download CRYENGINE: download PostProcessEffects.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*=============================================================================
  4.    PostProcessEffects.cpp : 3d engine post processing acess/scripts interfaces
  5.  
  6.    Revision history:
  7. * 23/02/2005: Re-factored/Converted to CryEngine 2.0 by Tiago Sousa
  8. * Created by Tiago Sousa
  9.  
  10.    Notes:
  11. * Check PostEffects.h for list of available effects
  12.  
  13.    =============================================================================*/
  14.  
  15. #include "StdAfx.h"
  16.  
  17. void C3DEngine::SetPostEffectParam(const char* pParam, float fValue, bool bForceValue) const
  18. {
  19.         if (pParam && GetRenderer())
  20.                 GetRenderer()->EF_SetPostEffectParam(pParam, fValue, bForceValue);
  21. }
  22.  
  23. void C3DEngine::GetPostEffectParam(const char* pParam, float& fValue) const
  24. {
  25.         if (pParam && GetRenderer())
  26.                 GetRenderer()->EF_GetPostEffectParam(pParam, fValue);
  27. }
  28.  
  29. void C3DEngine::SetPostEffectParamVec4(const char* pParam, const Vec4& pValue, bool bForceValue) const
  30. {
  31.         if (pParam && GetRenderer())
  32.                 GetRenderer()->EF_SetPostEffectParamVec4(pParam, pValue, bForceValue);
  33. }
  34.  
  35. void C3DEngine::GetPostEffectParamVec4(const char* pParam, Vec4& pValue) const
  36. {
  37.         if (pParam && GetRenderer())
  38.                 GetRenderer()->EF_GetPostEffectParamVec4(pParam, pValue);
  39. }
  40.  
  41. void C3DEngine::SetPostEffectParamString(const char* pParam, const char* pszArg) const
  42. {
  43.         if (pParam && pszArg && GetRenderer())
  44.                 GetRenderer()->EF_SetPostEffectParamString(pParam, pszArg);
  45. }
  46.  
  47. void C3DEngine::GetPostEffectParamString(const char* pParam, const char*& pszArg) const
  48. {
  49.         if (pParam && GetRenderer())
  50.                 GetRenderer()->EF_GetPostEffectParamString(pParam, pszArg);
  51. }
  52.  
  53. int32 C3DEngine::GetPostEffectID(const char* pPostEffectName)
  54. {
  55.         return GetRenderer() ? GetRenderer()->EF_GetPostEffectID(pPostEffectName) : 0;
  56. }
  57.  
  58. void C3DEngine::ResetPostEffects(bool bOnSpecChange) const
  59. {
  60.         if (GetRenderer())
  61.         {
  62.                 GetRenderer()->EF_ResetPostEffects(bOnSpecChange);
  63.         }
  64. }
  65.  
downloadPostProcessEffects.cpp 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