BVB Source Codes

CRYENGINE Show FlowMovieNodes.cpp Source code

Return Download CRYENGINE: download FlowMovieNodes.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #include "StdAfx.h"
  4.  
  5. #include <CryFlowGraph/IFlowBaseNode.h>
  6.  
  7. class CMovieManager;
  8.  
  9. class CMovieInstance
  10. {
  11. public:
  12.         void AddRef() { ++m_nRefs; }
  13.         void Release();
  14.  
  15. private:
  16.         int            m_nRefs;
  17.         CMovieManager* m_pManager;
  18. };
  19.  
  20. class CMovieManager
  21. {
  22. public:
  23.         void ReleaseInstance(CMovieInstance* pInstance)
  24.         {
  25.         }
  26. };
  27.  
  28. void CMovieInstance::Release()
  29. {
  30.         if (0 == --m_nRefs)
  31.         {
  32.                 m_pManager->ReleaseInstance(this);
  33.         }
  34. }
  35.  
  36. class CFlowNode_Movie : public CFlowBaseNode<eNCT_Singleton>
  37. {
  38. public:
  39.         CFlowNode_Movie(SActivationInfo* pActInfo)
  40.         {
  41.         }
  42.  
  43.         enum EInputPorts
  44.         {
  45.                 eIP_TimeOfDay = 0,
  46.         };
  47.  
  48.         enum EOutputPorts
  49.         {
  50.                 eOP_SunDirection = 0,
  51.         };
  52.  
  53.         void GetConfiguration(SFlowNodeConfig& config)
  54.         {
  55.         }
  56.  
  57.         void ProcessEvent(EFlowEvent event, SActivationInfo* pActInfo)
  58.         {
  59.                 switch (event)
  60.                 {
  61.                 case eFE_Activate:
  62.                         break;
  63.                 }
  64.         }
  65.  
  66.         virtual void GetMemoryUsage(ICrySizer* s) const
  67.         {
  68.                 s->Add(*this);
  69.         }
  70.  
  71. private:
  72.         void Reload(const char* filename);
  73.  
  74. };
  75.  
  76. // REGISTER_FLOW_NODE("Environment:Movie", CFlowNode_Movie);
  77.  
downloadFlowMovieNodes.cpp 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