BVB Source Codes

CRYENGINE Show Target.h Source code

Return Download CRYENGINE: download Target.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 "ParticleSystem/ParticleCommon.h"
  6. #include "ParticleSystem/ParticleAttributes.h"
  7. #include "ParticleSystem/ParticleEmitter.h"
  8. #include "ParticleSystem/ParticleComponentRuntime.h"
  9. #include "ParamMod.h"
  10.  
  11. namespace pfx2
  12. {
  13.  
  14. SERIALIZATION_ENUM_DECLARE(ETargetSource, ,
  15.                            Self,
  16.                            Parent,
  17.                            Target
  18.                            )
  19.  
  20. // PFX2_TODO : optimize : GetTarget is very inefficient. Make static dispatch and then vectorize it.
  21.  
  22. class CTargetSource
  23. {
  24. public:
  25.         CTargetSource(ETargetSource source = ETargetSource::Target);
  26.  
  27.         void Serialize(Serialization::IArchive& ar);
  28.         Vec3 GetTarget(const SUpdateContext& context, TParticleId particleId, bool isParentId = false);
  29.  
  30. private:
  31.         Vec3          m_offset;
  32.         ETargetSource m_source;
  33. };
  34.  
  35. }
  36.  
  37. #include "TargetImpl.h"
  38.  
downloadTarget.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