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 std::string &groupName)
 Sets the ResourceGroup that is to be used when loading non-texture assets.
std::string getResourceGroup () const
 Returns the ResourceGroup that is currently being used.
virtual void loadResource (const std::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

std::string mResourceGroup


Constructor & Destructor Documentation

OpenGUI::OgreResourceProvider::OgreResourceProvider (  ) 

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


Member Function Documentation

std::string OpenGUI::OgreResourceProvider::getResourceGroup (  )  const

Returns the ResourceGroup that is currently being used.

void OpenGUI::OgreResourceProvider::loadResource ( const std::string &  filename,
Resource &  output 
) [virtual]

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

void OpenGUI::OgreResourceProvider::setResourceGroup ( const std::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

std::string OpenGUI::OgreResourceProvider::mResourceGroup [protected]


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Fri Jan 5 23:05:42 2007