OgreExternalTextureSourceManager.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef _OgreExternalTextureSourceManager_H
#define _OgreExternalTextureSourceManager_H
/***************************************************************************
OgreExternalTextureSourceManager.h -
Handles the registering / unregistering of texture modifier plugins
-------------------
date : Jan 1 2004
email : pjcast@yahoo.com
***************************************************************************/
#include "OgreSingleton.h"
#include "OgreString.h"
#include "OgreResourceGroupManager.h"
#include "OgreExternalTextureSource.h"
#include "OgreHeaderPrefix.h"
namespace Ogre
{
class _OgreExport ExternalTextureSourceManager : public Singleton<ExternalTextureSourceManager>, public ResourceAlloc
{
public:
ExternalTextureSourceManager();
~ExternalTextureSourceManager();
void setCurrentPlugIn( const String& sTexturePlugInType );
ExternalTextureSource* getCurrentPlugIn( void ) const { return mCurrExternalTextureSource; }
void destroyAdvancedTexture( const String& sTextureName,
const String& groupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
ExternalTextureSource* getExternalTextureSource( const String& sTexturePlugInType );
void setExternalTextureSource( const String& sTexturePlugInType, ExternalTextureSource* pTextureSystem );
static ExternalTextureSourceManager& getSingleton(void);
static ExternalTextureSourceManager* getSingletonPtr(void);
protected:
ExternalTextureSource* mCurrExternalTextureSource;
// Collection of loaded texture System PlugIns, keyed by registered type
typedef map< String, ExternalTextureSource*>::type TextureSystemList;
TextureSystemList mTextureSystems;
};
}
#include "OgreHeaderSuffix.h"
#endif
Ogre::ExternalTextureSourceManager::TextureSystemList
map< String, ExternalTextureSource * >::type TextureSystemList
Definition: OgreExternalTextureSourceManager.h:119
Ogre::ExternalTextureSourceManager::getCurrentPlugIn
ExternalTextureSource * getCurrentPlugIn(void) const
Returns currently selected plugin, may be null if none selected.
Definition: OgreExternalTextureSourceManager.h:68
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
OgreExternalTextureSource.h
Ogre::ExternalTextureSourceManager
Singleton Class which handles the registering and control of texture plugins.
Definition: OgreExternalTextureSourceManager.h:56
OgreString.h
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME
static String DEFAULT_RESOURCE_GROUP_NAME
Default resource group name.
Definition: OgreResourceGroupManager.h:266
Ogre::ExternalTextureSourceManager::mTextureSystems
TextureSystemList mTextureSystems
Definition: OgreExternalTextureSourceManager.h:120
OgreSingleton.h
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
OgreHeaderSuffix.h
Ogre
Definition: OgreAndroidLogListener.h:34
OgreHeaderPrefix.h
Ogre::ExternalTextureSourceManager::mCurrExternalTextureSource
ExternalTextureSource * mCurrExternalTextureSource
The current texture controller selected.
Definition: OgreExternalTextureSourceManager.h:116
Ogre::Singleton
Template class for creating single-instance global classes.
Definition: OgreSingleton.h:64
OgreResourceGroupManager.h
Ogre::map
Definition: OgrePrerequisites.h:533
Ogre::ExternalTextureSource
IMPORTANT: Plugins must override default dictionary name! Base class that texture plugins derive from...
Definition: OgreExternalTextureSource.h:74
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.