BVB Source Codes

CRYENGINE Show CloudBlockerRenderNode.h Source code

Return Download CRYENGINE: download CloudBlockerRenderNode.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef _CLOUDBLOCKER_RENDERNODE_
  4. #define _CLOUDBLOCKER_RENDERNODE_
  5.  
  6. #pragma once
  7.  
  8. class CCloudBlockerRenderNode : public ICloudBlockerRenderNode, public Cry3DEngineBase
  9. {
  10. public:
  11.         CCloudBlockerRenderNode();
  12.  
  13.         // implements IRenderNode
  14.         virtual const char*             GetName() const override                      { return "CloudBlocker"; }
  15.         virtual const char*             GetEntityClassName() const override           { return "CloudBlocker"; }
  16.         virtual void                    SetMatrix(const Matrix34& mat) override;
  17.         virtual Vec3                    GetPos(bool bWorldOnly = true) const override { return m_position; }
  18.         virtual const AABB              GetBBox() const override                      { return m_WSBBox; }
  19.         virtual void                    FillBBox(AABB& aabb) override;
  20.         virtual void                    SetBBox(const AABB& WSBBox) override          { m_WSBBox = WSBBox; }
  21.         virtual void                    OffsetPosition(const Vec3& delta) override;
  22.         virtual void                    Render(const struct SRendParams& EntDrawParams, const SRenderingPassInfo& passInfo) override;
  23.         virtual struct IPhysicalEntity* GetPhysics() const override                 { return nullptr; }
  24.         virtual void                    SetPhysics(IPhysicalEntity* pPhys) override {}
  25.         virtual void                    SetMaterial(IMaterial* pMat) override       {}
  26.         virtual IMaterial*              GetMaterial(Vec3* pHitPos) const override   { return nullptr; }
  27.         virtual IMaterial*              GetMaterialOverride() override              { return nullptr; }
  28.         virtual float                   GetMaxViewDist() override                   { return 1000000.0f; }
  29.         virtual EERType                 GetRenderNodeType() override                { return eERType_CloudBlocker; }
  30.         virtual void                    GetMemoryUsage(ICrySizer* pSizer) const override;
  31.  
  32.         // implements ICloudBlockerRenderNode
  33.         void SetProperties(const SCloudBlockerProperties& properties) override;
  34.  
  35. private:
  36.         ~CCloudBlockerRenderNode();
  37.  
  38.         AABB m_WSBBox;
  39.         Vec3 m_position;
  40.         f32  m_decayStart;
  41.         f32  m_decayEnd;
  42.         f32  m_decayInfluence;
  43.         bool m_bScreenspace;
  44. };
  45.  
  46. #endif // _CLOUDBLOCKER_RENDERNODE_
  47.  
downloadCloudBlockerRenderNode.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