VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvGraphics
DtEffectManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
******************************************************************************/
8
12
#pragma once
13
14
#include <
vrvGraphics/vrvGraphics.h
>
15
#include <
vrvGraphics/DtEffect.h
>
16
#include <boost/unordered_map.hpp>
17
18
namespace
makVrv
19
{
22
class
DT_DLL_VRVGRAPHICS
DtEffectManager
23
{
24
public
:
25
27
DtEffectManager
();
28
30
~
DtEffectManager
();
31
33
void
releaseResources();
34
39
DtEffect
* createEffect(
const
std::string& effectName,
40
DtEffectCreator::CreateParameters
* params = 0)
const
;
41
47
DtEffect
* findSharedEffect(
const
std::string& effectName,
48
DtEffectCreator::CreateParameters
* params = 0);
49
52
void
registerEffectCreator(
const
std::string& effectName,
DtEffectCreator
* creator);
53
54
protected
:
55
typedef
boost::unordered_map<std::string,DtEffectCreator*>
CreatorMap
;
56
typedef
boost::unordered_map<std::string,DtEffect*>
EffectMap
;
57
58
CreatorMap
myEffectCreators
;
59
EffectMap
mySharedEffects
;
60
};
61
}
62
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)