OgreRenderSystemCapabilitiesManager.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4  (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2013 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __RENDERSYSTEMCAPABILITIESMANAGER_H__
29 #define __RENDERSYSTEMCAPABILITIESMANAGER_H__
30 
31 #include "OgrePrerequisites.h"
32 #include "OgreSingleton.h"
33 #include "OgreStringVector.h"
34 
36 #include "OgreHeaderPrefix.h"
37 
38 
39 namespace Ogre {
40 
41 
52  class _OgreExport RenderSystemCapabilitiesManager : public Singleton<RenderSystemCapabilitiesManager>, public RenderSysAlloc
53  {
54 
55  public:
56 
60 
64 
65 
68  void parseCapabilitiesFromArchive(const String& filename, const String& archiveType, bool recursive = true);
69 
73  RenderSystemCapabilities* loadParsedCapabilities(const String& name);
74 
76  const map<String, RenderSystemCapabilities*>::type &getCapabilities() const;
77 
79  void _addRenderSystemCapabilities(const String& name, RenderSystemCapabilities* caps);
80 
96  static RenderSystemCapabilitiesManager& getSingleton(void);
112  static RenderSystemCapabilitiesManager* getSingletonPtr(void);
113 
114  protected:
115 
117 
119  CapabilitiesMap mCapabilitiesMap;
120 
122 
123  };
124 
127 }
128 
129 #include "OgreHeaderSuffix.h"
130 
131 #endif
Class for managing RenderSystemCapabilities database for Ogre.
#define _OgreExport
Definition: OgrePlatform.h:257
_StringBase String
Class for serializing RenderSystemCapabilities to / from a .rendercaps script.
singleton class for storing the capabilities of the graphics card.
map< String, RenderSystemCapabilities * >::type CapabilitiesMap
Template class for creating single-instance global classes.
Definition: OgreSingleton.h:64
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jan 2 2017 11:59:30