wxOgreResources Class Reference

Wrapper around the Ogre resources system. More...

#include <resources.h>

List of all members.

Public Member Functions

 wxOgreResources ()
void InitialiseAllResources ()
 Initialise all resource groups which are yet to be initialised.
void AddResource (const Ogre::String &path, const Ogre::String &type="FileSystem", const Ogre::String &group=DEFAULT_GROUP)
 Add a resource location to for a given resource group.
bool LoadResourceFile (const Ogre::String &file)
 Load a resource config file like the one used by Ogre's demos.
Ogre::StringVectorPtr GetResourcesList (const Ogre::String &group, const Ogre::String &pattern)
 Find all file names matching a given pattern in a group.
Ogre::StringVectorPtr GetResourcesList (const Ogre::String &group)
 List all file names in a group.
Ogre::StringVector GetResourcesGroups ()
 Get a list of the currently defined resource groups.

Private Attributes

Ogre::ResourceGroupManager * m_rmgr


Detailed Description

Wrapper around the Ogre resources system.

Author:
Martin Pieuchot

Definition at line 31 of file resources.h.


Constructor & Destructor Documentation

wxOgreResources::wxOgreResources (  ) 


Member Function Documentation

void wxOgreResources::AddResource ( const Ogre::String &  path,
const Ogre::String &  type = "FileSystem",
const Ogre::String &  group = DEFAULT_GROUP 
)

Add a resource location to for a given resource group.

Ogre::StringVector wxOgreResources::GetResourcesGroups (  ) 

Get a list of the currently defined resource groups.

Ogre::StringVectorPtr wxOgreResources::GetResourcesList ( const Ogre::String &  group  ) 

List all file names in a group.

Ogre::StringVectorPtr wxOgreResources::GetResourcesList ( const Ogre::String &  group,
const Ogre::String &  pattern 
)

Find all file names matching a given pattern in a group.

void wxOgreResources::InitialiseAllResources (  ) 

Initialise all resource groups which are yet to be initialised.

bool wxOgreResources::LoadResourceFile ( const Ogre::String &  file  ) 

Load a resource config file like the one used by Ogre's demos.

Parameters:
file the comple path to the resource file.


Member Data Documentation

Ogre::ResourceGroupManager* wxOgreResources::m_rmgr [private]

Definition at line 66 of file resources.h.


The documentation for this class was generated from the following file: