BVB Source Codes

CRYENGINE Show AttachmentMerged.h Source code

Return Download CRYENGINE: download AttachmentMerged.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #pragma once
  4.  
  5. #include "AttachmentSkin.h"
  6.  
  7. class CAttachmentMerger;
  8.  
  9. class CAttachmentMerged : public _reference_target_t
  10. {
  11.         friend class CAttachmentMerger;
  12.  
  13. public:
  14.         struct MergeInfo
  15.         {
  16.                 _smart_ptr<IAttachment> pAttachment;
  17.                 IAttachmentObject*      pAttachmentObject;
  18.  
  19.                 struct
  20.                 {
  21.                         uint32 nFirstIndex;
  22.                         uint32 nIndexCount;
  23.                 } IndexInfo[MAX_STATOBJ_LODS_NUM];
  24.         };
  25.  
  26.         CAttachmentMerged(string strName, CAttachmentManager* pAttachmentManager);
  27.         virtual ~CAttachmentMerged();
  28.  
  29.         void Invalidate();
  30.         bool AreAttachmentBindingsValid();
  31.  
  32.         void HideMergedAttachment(const IAttachment* pAttachment, bool bHide);
  33.         bool HasAttachment(const IAttachment* pAttachment) const;
  34.         void AddAttachments(const DynArray<MergeInfo>& attachmentInfos);
  35.  
  36.         void DrawAttachment(SRendParams& rParams, const SRenderingPassInfo& passInfo, const Matrix34& rWorldMat34, f32 fZoomFactor = 1);
  37.  
  38. private:
  39.         DynArray<MergeInfo>::iterator       FindAttachment(IAttachment* pAttachment);
  40.         DynArray<MergeInfo>::const_iterator FindAttachment(const IAttachment* pAttachment) const;
  41.  
  42.         DynArray<MergeInfo>         m_MergedAttachments;
  43.         DynArray<vtx_idx>           m_MergedAttachmentIndices[MAX_STATOBJ_LODS_NUM];
  44.         bool                        m_bRequiresIndexUpdate;
  45.  
  46.         _smart_ptr<CAttachmentSKIN> m_pMergedSkinAttachment;
  47. };
  48.  
downloadAttachmentMerged.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