Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogre/OgreMain/include/OgreSkeletonManager.h @ 17

Last change on this file since 17 was 5, checked in by anonymous, 17 years ago

=hoffentlich gehts jetzt

File size: 3.8 KB
Line 
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-2006 Torus Knot Software Ltd
8Also see acknowledgements in Readme.html
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23
24You may alternatively use this source under the terms of a specific version of
25the OGRE Unrestricted License provided you have obtained such a license from
26Torus Knot Software Ltd.
27-----------------------------------------------------------------------------
28*/
29#ifndef __SkeletonManager_H__
30#define __SkeletonManager_H__
31
32#include "OgrePrerequisites.h"
33
34#include "OgreResourceManager.h"
35#include "OgreSingleton.h"
36
37namespace Ogre {
38
39    /** Handles the management of skeleton resources.
40        @remarks
41            This class deals with the runtime management of
42            skeleton data; like other resource managers it handles
43            the creation of resources (in this case skeleton data),
44            working within a fixed memory budget.
45    */
46    class _OgreExport SkeletonManager: public ResourceManager, public Singleton<SkeletonManager>
47    {
48    public:
49        /// Constructor
50        SkeletonManager();
51        ~SkeletonManager();
52
53        /** Override standard Singleton retrieval.
54        @remarks
55        Why do we do this? Well, it's because the Singleton
56        implementation is in a .h file, which means it gets compiled
57        into anybody who includes it. This is needed for the
58        Singleton template to work, but we actually only want it
59        compiled into the implementation of the class based on the
60        Singleton, not all of them. If we don't change this, we get
61        link errors when trying to use the Singleton-based class from
62        an outside dll.
63        @par
64        This method just delegates to the template version anyway,
65        but the implementation stays in this single compilation unit,
66        preventing link errors.
67        */
68        static SkeletonManager& getSingleton(void);
69        /** Override standard Singleton retrieval.
70        @remarks
71        Why do we do this? Well, it's because the Singleton
72        implementation is in a .h file, which means it gets compiled
73        into anybody who includes it. This is needed for the
74        Singleton template to work, but we actually only want it
75        compiled into the implementation of the class based on the
76        Singleton, not all of them. If we don't change this, we get
77        link errors when trying to use the Singleton-based class from
78        an outside dll.
79        @par
80        This method just delegates to the template version anyway,
81        but the implementation stays in this single compilation unit,
82        preventing link errors.
83        */
84        static SkeletonManager* getSingletonPtr(void);
85    protected:
86
87        /// @copydoc ResourceManager::createImpl
88        Resource* createImpl(const String& name, ResourceHandle handle, 
89            const String& group, bool isManual, ManualResourceLoader* loader, 
90            const NameValuePairList* createParams);
91
92    };
93
94
95}
96
97
98#endif
Note: See TracBrowser for help on using the repository browser.