BVB Source Codes

CRYENGINE Show DistanceCloudRenderNode.h Source code

Return Download CRYENGINE: download DistanceCloudRenderNode.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef _DISTANCECLOUD_RENDERNODE_
  4. #define _DISTANCECLOUD_RENDERNODE_
  5.  
  6. #pragma once
  7.  
  8. class CDistanceCloudRenderNode : public IDistanceCloudRenderNode, public Cry3DEngineBase
  9. {
  10. public:
  11.         // implements IDistanceCloudRenderNode
  12.         virtual void SetProperties(const SDistanceCloudProperties& properties);
  13.  
  14.         // implements IRenderNode
  15.         virtual void             SetMatrix(const Matrix34& mat);
  16.  
  17.         virtual EERType          GetRenderNodeType();
  18.         virtual const char*      GetEntityClassName() const;
  19.         virtual const char*      GetName() const;
  20.         virtual Vec3             GetPos(bool bWorldOnly = true) const;
  21.         virtual void             Render(const SRendParams& rParam, const SRenderingPassInfo& passInfo);
  22.         virtual IPhysicalEntity* GetPhysics() const;
  23.         virtual void             SetPhysics(IPhysicalEntity*);
  24.         virtual void             SetMaterial(IMaterial* pMat);
  25.         virtual IMaterial*       GetMaterial(Vec3* pHitPos = 0) const;
  26.         virtual IMaterial*       GetMaterialOverride() { return m_pMaterial; }
  27.         virtual float            GetMaxViewDist();
  28.         virtual void             Precache();
  29.         virtual void             GetMemoryUsage(ICrySizer* pSizer) const;
  30.         virtual const AABB       GetBBox() const             { return m_WSBBox; }
  31.         virtual void             SetBBox(const AABB& WSBBox) { m_WSBBox = WSBBox; }
  32.         virtual void             FillBBox(AABB& aabb);
  33.         virtual void             OffsetPosition(const Vec3& delta);
  34.         virtual void             SetLayerId(uint16 nLayerId) { m_nLayerId = nLayerId; Get3DEngine()->C3DEngine::UpdateObjectsLayerAABB(this); }
  35.         virtual uint16           GetLayerId()                { return m_nLayerId; }
  36.  
  37. public:
  38.         CDistanceCloudRenderNode();
  39.         SDistanceCloudProperties GetProperties() const;
  40.  
  41. private:
  42.         ~CDistanceCloudRenderNode();
  43.  
  44. private:
  45.         Vec3                  m_pos;
  46.         float                 m_sizeX;
  47.         float                 m_sizeY;
  48.         float                 m_rotationZ;
  49.         _smart_ptr<IMaterial> m_pMaterial;
  50.         AABB                  m_WSBBox;
  51.         uint16                m_nLayerId;
  52. };
  53.  
  54. #endif // #ifndef _DISTANCECLOUD_RENDERNODE_
  55.  
downloadDistanceCloudRenderNode.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