VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 }
DtFontManager & fontManager()
Get the shared font manager for accessing fonts.
Definition: DtOverlayResourceProvider.h:36
bool myForceTextShaping
Definition: DtOverlayResourceProvider.h:61
void * NativeResourceHandle
Definition: DtOverlayResourceProvider.h:33
GroupReferenceMap myGroups
Definition: DtOverlayResourceProvider.h:64
std::map< unsigned int, unsigned int > GroupReferenceMap
Definition: DtOverlayResourceProvider.h:63
DtFontManager & myFontManager
Definition: DtOverlayResourceProvider.h:58
Manages instances of fonts, the font will be kept in memory unless the manager is cleared...
Definition: DtFontManager.h:28
DtEffectManager & effectManager()
Get the shared effects manager for accessing effects.
Definition: DtOverlayResourceProvider.h:39
The overlay resource provider class provies resources for overlay drawing classes.
Definition: DtOverlayResourceProvider.h:23
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
The effect manager provides a way of creating and sharing effects.
Definition: DtEffectManager.h:18
DtEffectManager & myEffectManager
Definition: DtOverlayResourceProvider.h:59
bool forceTextShaping(void) const
Get whether to use harf buzz shaping or not.
Definition: DtOverlayResourceProvider.h:42

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)