VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEffectManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include <vrvGraphics/DtEffect.h>
12 #include <boost/unordered_map.hpp>
13 
14 namespace makVrv
15 {
19  {
20  public:
21 
23  DtEffectManager(const std::string& dataPath);
24 
26  ~DtEffectManager();
27 
29  void releaseResources();
30 
35  DtEffect* createEffect(const std::string& effectName,
36  DtEffectCreator::CreateParameters* params = 0) const;
37 
43  DtEffect* findSharedEffect(const std::string& effectName,
45 
48  void registerEffectCreator(const std::string& effectName, DtEffectCreator* creator);
49 
50  protected:
51  typedef boost::unordered_map<std::string,DtEffectCreator*> CreatorMap;
52  typedef boost::unordered_map<std::string,DtEffect*> EffectMap;
53 
56 
57  std::string myDataPath;
58  };
59 }
60 
boost::unordered_map< std::string, DtEffectCreator * > CreatorMap
Definition: DtEffectManager.h:51
Abstract creator class for registering effects with a effects manager.
Definition: DtEffect.h:94
boost::unordered_map< std::string, DtEffect * > EffectMap
Definition: DtEffectManager.h:52
Contains makVrv::DtEffect class.
EffectMap mySharedEffects
Definition: DtEffectManager.h:55
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
CreatorMap myEffectCreators
Definition: DtEffectManager.h:54
The effect manager provides a way of creating and sharing effects.
Definition: DtEffectManager.h:18
The base class for a programmable pipeline render effect.
Definition: DtEffect.h:19
std::string myDataPath
Definition: DtEffectManager.h:57

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)