VR-Forces 4.8 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 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 #pragma once
13 
14 #include <vrvGraphics/DtEffect.h>
15 #include <boost/unordered_map.hpp>
16 
17 namespace makVrv
18 {
22  {
23  public:
24 
26  DtEffectManager(const std::string& dataPath);
27 
29  ~DtEffectManager();
30 
32  void releaseResources();
33 
38  DtEffect* createEffect(const std::string& effectName,
39  DtEffectCreator::CreateParameters* params = 0) const;
40 
46  DtEffect* findSharedEffect(const std::string& effectName,
48 
51  void registerEffectCreator(const std::string& effectName, DtEffectCreator* creator);
52 
53  protected:
54  typedef boost::unordered_map<std::string,DtEffectCreator*> CreatorMap;
55  typedef boost::unordered_map<std::string,DtEffect*> EffectMap;
56 
59 
60  std::string myDataPath;
61  };
62 }
63 
boost::unordered_map< std::string, DtEffectCreator * > CreatorMap
Definition: DtEffectManager.h:54
Abstract creator class for registering effects with a effects manager.
Definition: DtEffect.h:94
boost::unordered_map< std::string, DtEffect * > EffectMap
Definition: DtEffectManager.h:55
Contains makVrv::DtEffect class.
EffectMap mySharedEffects
Definition: DtEffectManager.h:58
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
CreatorMap myEffectCreators
Definition: DtEffectManager.h:57
The effect manager provides a way of creating and sharing effects.
Definition: DtEffectManager.h:21
The base class for a programmable pipeline render effect.
Definition: DtEffect.h:19
std::string myDataPath
Definition: DtEffectManager.h:60

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)