BVB Source Codes

CRYENGINE Show WrinkleMapRenderProxyCallback.h Source code

Return Download CRYENGINE: download WrinkleMapRenderProxyCallback.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __WrinkleMapRenderProxyCallback_H__
  4. #define __WrinkleMapRenderProxyCallback_H__
  5.  
  6. #if _MSC_VER > 1000
  7.         #pragma once
  8. #endif
  9.  
  10. #include <CryRenderer/IShaderParamCallback.h>
  11. #include <CryExtension/ClassWeaver.h>
  12.  
  13. class CWrinkleMapShaderParamCallback : public IShaderParamCallback
  14. {
  15.         CRYINTERFACE_BEGIN()
  16.         CRYINTERFACE_ADD(IShaderParamCallback)
  17.         CRYINTERFACE_END()
  18.  
  19.         CRYGENERATE_CLASS(CWrinkleMapShaderParamCallback, "WrinkleMapShaderParamCallback", 0x68c7f0e0c36446fe, 0x82a3bc01b54dc7bf)
  20.  
  21.         CWrinkleMapShaderParamCallback();
  22.         virtual ~CWrinkleMapShaderParamCallback();
  23.  
  24. public:
  25.  
  26.         //////////////////////////////////////////////////////////////////////////
  27.         //      Implement IShaderParamCallback
  28.         //////////////////////////////////////////////////////////////////////////
  29.  
  30.         virtual void SetCharacterInstance(ICharacterInstance* pCharInstance) override
  31.         {
  32.                 m_pCharacterInstance = pCharInstance;
  33.         }
  34.  
  35.         virtual ICharacterInstance* GetCharacterInstance() const override
  36.         {
  37.                 return m_pCharacterInstance;
  38.         }
  39.  
  40.         virtual bool Init() override;
  41.         virtual void SetupShaderParams(IShaderPublicParams* pParams, IMaterial* pMaterial) override;
  42.         virtual void Disable(IShaderPublicParams* pParams) override;
  43.  
  44. protected:
  45.  
  46.         void SetupBoneWrinkleMapInfo();
  47.  
  48.         //////////////////////////////////////////////////////////////////////////
  49.  
  50.         ICharacterInstance* m_pCharacterInstance;
  51.  
  52.         struct SWrinkleBoneInfo
  53.         {
  54.                 int16 m_nChannelID;
  55.                 int16 m_nJointID;
  56.         };
  57.         typedef std::vector<SWrinkleBoneInfo> TWrinkleBoneInfo;
  58.         TWrinkleBoneInfo m_WrinkleBoneInfo;
  59.  
  60.         IMaterial*       m_pCachedMaterial;
  61.  
  62.         uint8            m_eSemantic[3];
  63.  
  64.         bool             m_bWrinklesEnabled;
  65. };
  66.  
  67. class CWrinkleMapShaderParamCallbackUI : public CWrinkleMapShaderParamCallback
  68. {
  69.         CRYINTERFACE_BEGIN()
  70.         CRYINTERFACE_ADD(CWrinkleMapShaderParamCallback)
  71.         CRYINTERFACE_END()
  72.                
  73.         CRYGENERATE_CLASS(CWrinkleMapShaderParamCallbackUI, "bWrinkleMap", 0x1B9D46925918485B, 0xB7312C8FB3F5B763)
  74. };
  75.  
  76. #endif //__WrinkleMapRenderProxyCallback_H__
  77.  
downloadWrinkleMapRenderProxyCallback.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