OGRE  1.9.0
OgreSkeletonManager.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 __SkeletonManager_H__
29#define __SkeletonManager_H__
30
31#include "OgrePrerequisites.h"
32
33#include "OgreResourceManager.h"
34#include "OgreSingleton.h"
35
36namespace Ogre {
37
51 class _OgreExport SkeletonManager: public ResourceManager, public Singleton<SkeletonManager>
52 {
53 public:
57
60 SkeletonPtr create (const String& name, const String& group,
61 bool isManual = false, ManualResourceLoader* loader = 0,
62 const NameValuePairList* createParams = 0);
63
66 SkeletonPtr getByName(const String& name, const String& groupName = ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME);
67
100 protected:
101
104 const String& group, bool isManual, ManualResourceLoader* loader,
105 const NameValuePairList* createParams);
106
107 };
108
112}
113
114
115#endif
#define _OgreExport
Definition: OgrePlatform.h:260
Interface describing a manual resource loader.
Definition: OgreResource.h:515
Defines a generic resource handler.
Abstract class representing a loadable resource (e.g.
Definition: OgreResource.h:80
Template class for creating single-instance global classes.
Definition: OgreSingleton.h:65
Handles the management of skeleton resources.
SkeletonPtr getByName(const String &name, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
Get a resource by name.
SkeletonManager()
Constructor.
Resource * createImpl(const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader, const NameValuePairList *createParams)
Create a new resource instance compatible with this manager (no custom parameters are populated at th...
static SkeletonManager * getSingletonPtr(void)
Override standard Singleton retrieval.
SkeletonPtr create(const String &name, const String &group, bool isManual=false, ManualResourceLoader *loader=0, const NameValuePairList *createParams=0)
Create a new skeleton.
static SkeletonManager & getSingleton(void)
Override standard Singleton retrieval.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Definition: OgreCommon.h:550
unsigned long long int ResourceHandle
Definition: OgreResource.h:41
_StringBase String