40 #ifndef _resourceassetgroup_cpp
41 #define _resourceassetgroup_cpp
43 #include "Resource/assetgroup.h"
56 Ogre::ResourceGroupManager::getSingletonPtr()->createResourceGroup(this->
Name);
61 Ogre::ResourceGroupManager::getSingletonPtr()->destroyResourceGroup(this->
Name);
74 Ogre::ResourceGroupManager::getSingletonPtr()->initialiseResourceGroup(this->
Name);
87 return (*StreamIt).second;
89 Ogre::DataStreamPtr OgreStream = Ogre::ResourceGroupManager::getSingletonPtr()->openResource(AssetName,this->
Name);
90 Char8* AssetBuffer =
new Char8[ OgreStream->size() ];
91 OgreStream->read( (
void*)AssetBuffer, OgreStream->size() );
107 this->
GroupAssets.insert(std::pair<String,Resource::DataStreamPtr>(AssetName,NewStream));
UnnamedAssetContainer UnnamedGroupAssets
Container storing all of the unnamed open streams bleonging to this group.
String Name
The name of this group.
A simple reference counting pointer.
Declaration of FileStream.
const String & GetName() const
Gets the name of this asset group.
char Char8
A datatype to represent one character.
AssetGroup(const String &GroupName)
Class constructor.
An I/O stream to a buffer of memory.
~AssetGroup()
Class destructor.
uint32_t UInt32
An 32-bit unsigned integer.
AssetContainer GroupAssets
Container storing all of the named open streams belonging to this group.
Resource::DataStreamPtr CreateDataStream(void *Buffer, const UInt32 BufferSize)
Creates a stream from a memory buffer.
void InitializeAssets()
Prepares some Assets for use within this group.
Declaration of MemoryStream.
The bulk of the engine components go in this namspace.
CountedPtr< DataStream > DataStreamPtr
This is a convenience type for a data stream in a counted pointer.
AssetContainer::iterator AssetIterator
Iterator type for DataStream instances stored in this class.
Resource::DataStreamPtr OpenAssetStream(const String &AssetName)
Opens a stream to an asset in an AssetGroup.
std::string String
A datatype used to a series of characters.