VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOverlayResourceProvider.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <map>
14 
15 namespace makVrv
16 {
17  class DtFontManager;
18  class DtEffectManager;
19 
24  {
25  public:
26 
28  DtOverlayResourceProvider(DtFontManager& fontMan, DtEffectManager& effectMan, bool forceTextShaping);
29 
31  virtual ~DtOverlayResourceProvider();
32 
33  typedef void* NativeResourceHandle;
34 
36  inline DtFontManager& fontManager() { return myFontManager; }
37 
39  inline DtEffectManager& effectManager() { return myEffectManager; }
40 
42  inline bool forceTextShaping(void) const { return myForceTextShaping; }
43 
45  virtual unsigned int texture1DId(NativeResourceHandle handle) = 0;
46  virtual unsigned int texture2DId(NativeResourceHandle handle) = 0;
47 
49  void addGroupRef(unsigned int group);
50 
52  void removeGroupRef(unsigned int group);
53 
55  unsigned int groupCount();
56 
57  protected:
60 
62 
63  typedef std::map<unsigned int, unsigned int> GroupReferenceMap;
65  };
66 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)