BVB Source Codes

CRYENGINE Show ParticleComponentImpl.h Source code

Return Download CRYENGINE: download ParticleComponentImpl.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. // -------------------------------------------------------------------------
  4. //  Created:     29/01/2015 by Filipe amim
  5. //  Description:
  6. // -------------------------------------------------------------------------
  7. //
  8. ////////////////////////////////////////////////////////////////////////////
  9.  
  10. namespace pfx2
  11. {
  12.  
  13. template<typename T>
  14. ILINE T* CParticleComponentRuntime::GetSubInstanceData(size_t instanceId, TInstanceDataOffset offset)
  15. {
  16.         const SComponentParams& params = GetComponentParams();
  17.         CRY_PFX2_ASSERT(offset < params.m_instanceDataStride);            // very likely to be an invalid offset
  18.         byte* pBytes = m_subInstanceData.data();
  19.         pBytes += params.m_instanceDataStride * instanceId + offset;
  20.         return reinterpret_cast<T*>(pBytes);
  21. }
  22.  
  23. }
  24.  
downloadParticleComponentImpl.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