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 
120 
122 
123  };
124 
127 }
128 
129 #include "OgreHeaderSuffix.h"
130 
131 #endif
OgreHeaderSuffix.h
Ogre::RenderSystemCapabilitiesManager::mSerializer
RenderSystemCapabilitiesSerializer * mSerializer
Definition: OgreRenderSystemCapabilitiesManager.h:116
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::RenderSystemCapabilitiesManager::mScriptPattern
const String mScriptPattern
Definition: OgreRenderSystemCapabilitiesManager.h:121
Ogre::map
Definition: OgrePrerequisites.h:533
OgreSingleton.h
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::RenderSystemCapabilitiesManager::mCapabilitiesMap
CapabilitiesMap mCapabilitiesMap
Definition: OgreRenderSystemCapabilitiesManager.h:119
OgreHeaderPrefix.h
OgrePrerequisites.h
Ogre::Singleton
Template class for creating single-instance global classes.
Definition: OgreSingleton.h:64
Ogre::RenderSystemCapabilities
singleton class for storing the capabilities of the graphics card.
Definition: OgreRenderSystemCapabilities.h:279
Ogre::RenderSystemCapabilitiesSerializer
Class for serializing RenderSystemCapabilities to / from a .rendercaps script.
Definition: OgreRenderSystemCapabilitiesSerializer.h:48
Ogre::RenderSystemCapabilitiesManager
Class for managing RenderSystemCapabilities database for Ogre.
Definition: OgreRenderSystemCapabilitiesManager.h:52
OgreRenderSystemCapabilities.h
OgreStringVector.h
Ogre::RenderSystemCapabilitiesManager::CapabilitiesMap
map< String, RenderSystemCapabilities * >::type CapabilitiesMap
Definition: OgreRenderSystemCapabilitiesManager.h:118

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 Tue Apr 13 2021 08:53:15