OGRE  1.9.0
OgreRenderSystemCapabilitiesManager.h
Go to the documentation of this file.
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2014 Torus Knot Software Ltd
8
9Permission is hereby granted, free of charge, to any person obtaining a copy
10of this software and associated documentation files (the "Software"), to deal
11in the Software without restriction, including without limitation the rights
12to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom the Software is
14furnished to do so, subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in
17all copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25THE 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
39namespace 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
74
77
80
113
114 protected:
115
117
120
122
123 };
124
127}
128
129#include "OgreHeaderSuffix.h"
130
131#endif
#define _OgreExport
Definition: OgrePlatform.h:260
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Class for managing RenderSystemCapabilities database for Ogre.
virtual ~RenderSystemCapabilitiesManager()
Default destructor.
RenderSystemCapabilitiesManager()
Default constructor.
static RenderSystemCapabilitiesManager & getSingleton(void)
Override standard Singleton retrieval.
void _addRenderSystemCapabilities(const String &name, RenderSystemCapabilities *caps)
Method used by RenderSystemCapabilitiesSerializer::parseScript.
RenderSystemCapabilities * loadParsedCapabilities(const String &name)
Returns a capability loaded with RenderSystemCapabilitiesManager::parseCapabilitiesFromArchive method...
void parseCapabilitiesFromArchive(const String &filename, const String &archiveType, bool recursive=true)
map< String, RenderSystemCapabilities * >::type CapabilitiesMap
static RenderSystemCapabilitiesManager * getSingletonPtr(void)
Override standard Singleton retrieval.
const map< String, RenderSystemCapabilities * >::type & getCapabilities() const
Access to the internal map of loaded capabilities.
Class for serializing RenderSystemCapabilities to / from a .rendercaps script.
singleton class for storing the capabilities of the graphics card.
Template class for creating single-instance global classes.
Definition: OgreSingleton.h:65
_StringBase String
std::map< K, V, P, A > type