VR-Forces 4.7 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)