V-Gears 0
Free Final Fantasy VII engine.
VGears::TxzFile Class Reference

Handles TXZ files. More...

#include <TxzFile.h>

Inheritance diagram for VGears::TxzFile:
Collaboration diagram for VGears::TxzFile:

Public Member Functions

 TxzFile (Ogre::ResourceManager *creator, const Ogre::String &name, Ogre::ResourceHandle handle, const Ogre::String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=0)
 Constructor. More...
 
virtual ~TxzFile ()
 Destructor. More...
 
- Public Member Functions inherited from VGears::Resource
 Resource (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool manual, Ogre::ManualResourceLoader *loader)
 Constructor. More...
 
virtual ~Resource ()=default
 Destructor. More...
 

Static Public Attributes

static const String RESOURCE_TYPE
 The resource type. More...
 

Private Member Functions

virtual void loadImpl () override final
 Loads the file. More...
 
virtual void unloadImpl () override final
 Unloads the file. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VGears::Resource
virtual Ogre::DataStreamPtr openResource ()
 Opens the resource. More...
 

Detailed Description

Handles TXZ files.

TXZ files contains texture data used in the world map.

Constructor & Destructor Documentation

◆ TxzFile()

VGears::TxzFile::TxzFile ( Ogre::ResourceManager *  creator,
const Ogre::String &  name,
Ogre::ResourceHandle  handle,
const Ogre::String &  group,
bool  is_manual = false,
Ogre::ManualResourceLoader *  loader = 0 
)

Constructor.

Parameters
[in]creatorPointer to the ResourceManager that is creating this resource.
[in]nameThe unique name of the resource.
[in]handle
Todo:
Understand and document.
Parameters
[in]groupThe name of the resource group to which this resource belong.
[in]is_manualTrue if the resource is manually loaded, false otherwise.
[in]loaderPointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended.

◆ ~TxzFile()

VGears::TxzFile::~TxzFile ( )
virtual

Destructor.

Member Function Documentation

◆ loadImpl()

void VGears::TxzFile::loadImpl ( void  )
finaloverrideprivatevirtual

Loads the file.

◆ unloadImpl()

void VGears::TxzFile::unloadImpl ( void  )
finaloverrideprivatevirtual

Unloads the file.

Member Data Documentation

◆ RESOURCE_TYPE

const String VGears::TxzFile::RESOURCE_TYPE
static

The resource type.


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