OpenGUI::OgreResourceProvider Class Reference

#include <Renderer_Ogre_ResourceProvider.h>

List of all members.


Detailed Description

An implementation of OpenGUI::ResourceProvider that pulls resources from Ogre's built in resource system.


Public Member Functions

 OgreResourceProvider ()
virtual ~OgreResourceProvider ()
void setResourceGroup (const String &groupName)
 Sets the ResourceGroup that is to be used when loading non-texture assets.
const String & getResourceGroup () const
 Returns the ResourceGroup that is currently being used.
virtual void loadResource (const String &filename, Resource &output)
 Loads a given filename into the given OpenGUI::Resource object.
virtual void unloadResource (Resource &resource)
 Unloads the given OpenGUI::Resource object.

Protected Attributes

String mResourceGroup


Constructor & Destructor Documentation

OpenGUI::OgreResourceProvider::OgreResourceProvider  ) 
 

OpenGUI::OgreResourceProvider::~OgreResourceProvider  )  [virtual]
 


Member Function Documentation

const String & OpenGUI::OgreResourceProvider::getResourceGroup  )  const
 

Returns the ResourceGroup that is currently being used.

void OpenGUI::OgreResourceProvider::loadResource const String &  filename,
Resource &  output
[virtual]
 

Loads a given filename into the given OpenGUI::Resource object.

void OpenGUI::OgreResourceProvider::setResourceGroup const String &  groupName  ) 
 

Sets the ResourceGroup that is to be used when loading non-texture assets.

Default is Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME

void OpenGUI::OgreResourceProvider::unloadResource Resource &  resource  )  [virtual]
 

Unloads the given OpenGUI::Resource object.


Member Data Documentation

String OpenGUI::OgreResourceProvider::mResourceGroup [protected]
 


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:24 2007