![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
#include <TxzFileSerializer.h>
Classes | |
struct | PsxPixel |
A play station pixel representation. More... | |
struct | PsxPixel4Bit |
Play station pixel representation (4 bits). More... | |
struct | Rgba |
RGBA colour representation. More... | |
struct | VRamBlock |
A video RAM block representation. More... | |
struct | WorldMapTexture |
Public Member Functions | |
struct VGears::TxzFileSerializer::WorldMapTexture | __attribute__ ((packed)) |
struct VGears::TxzFileSerializer::PsxPixel | __attribute__ ((packed)) |
struct VGears::TxzFileSerializer::PsxPixel4Bit | __attribute__ ((packed)) |
struct VGears::TxzFileSerializer::Rgba | __attribute__ ((packed)) |
TxzFileSerializer () | |
Constructor. More... | |
virtual | ~TxzFileSerializer () |
Destructor. More... | |
void | Import (Ogre::DataStreamPtr &stream, TxzFile &dest) |
Imports a TXZ file. More... | |
std::vector< std::vector< Rgba > > | GetWorldMapTexture (uint32 id) |
Retrieves a texture color pixels from a texture ID. More... | |
![]() | |
Serializer () | |
Constructor. More... | |
virtual | ~Serializer () |
Destructor. More... | |
Public Attributes | |
struct VGears::TxzFileSerializer::VRamBlock | __attribute__ |
Private Member Functions | |
void | ImportDecompressed (Ogre::DataStream &stream, TxzFile &dest) |
Imports a texture from decompressed file contents. More... | |
void | ImportTextureSection (Ogre::DataStream &stream, TxzFile &dest, size_t section_end) |
Partially imports a texture from decompressed file contents. More... | |
void | ExtractTexture (const std::array< WorldMapTexture, 512 > &pallete_table) |
Private Attributes | |
std::vector< VRamBlock > | v_ram_blocks_ |
The list of video RAM blocks. More... | |
std::map< uint32, std::vector< std::vector< Rgba > > > | textures_ |
The list of textures. More... | |
Additional Inherited Members | |
![]() | |
void | readObject (Ogre::DataStreamPtr &stream, Ogre::Vector2 &dest) |
Reads an object as a 2 dimensional vector. More... | |
void | readObject (Ogre::DataStreamPtr &stream, Ogre::Vector3 &dest) |
Reads an object as a 3 dimensional vector. More... | |
void | readObject (Ogre::DataStreamPtr &stream, Ogre::AxisAlignedBox &dest) |
Reads an object as an axis aligned box. More... | |
void | readObject (Ogre::DataStreamPtr &stream, Pixel &dest) |
Reads an object as a pixel. More... | |
void | ReadChars (Ogre::DataStreamPtr &stream, char *dest, size_t count) |
Reads a stream as text. More... | |
void | Read1ByteBool (Ogre::DataStreamPtr &stream, bool &dest) |
Reads one byte from a stream and evaluates it as a boolean. More... | |
void | Read2ByteBool (Ogre::DataStreamPtr &stream, bool &dest) |
Reads two bytes from a stream and evaluates them as a boolean. More... | |
void | ReadShort (Ogre::DataStreamPtr &stream, uint16 &dest) |
Reads 16 bytes from a stream and evaluates as an unsigned short. More... | |
void | ReadInt16 (Ogre::DataStream &stream, sint16 &dest) |
Reads 16 bytes from a stream and evaluates as a signed integer. More... | |
void | ReadUInt16 (Ogre::DataStream &stream, uint16 &dest) |
Reads 16 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadInt16 (Ogre::DataStreamPtr &stream, sint16 &dest) |
Reads 16 bytes from a stream and evaluates as a signed integer. More... | |
void | ReadUInt16 (Ogre::DataStreamPtr &stream, uint16 &dest) |
Reads 16 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadUInt32 (Ogre::DataStreamPtr &stream, uint32 &dest) |
Reads 32 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadSInt32 (Ogre::DataStreamPtr &stream, sint32 &dest) |
Reads 32 bytes from a stream and evaluates as a signed int. More... | |
void | ReadUInt32 (Ogre::DataStream &stream, uint32 &dest) |
Reads 32 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadUInt8 (Ogre::DataStream &stream, uint8 &dest) |
Reads 8 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadUInt8 (Ogre::DataStreamPtr &stream, uint8 &dest) |
Reads 8 bytes from a stream and evaluates as an unsigned int. More... | |
void | ReadFloat (Ogre::DataStreamPtr &stream, float &dest) |
Reads bytes from a stream and evaluates them as a float. More... | |
void | ReadEndString (Ogre::DataStreamPtr &stream, const String &end_text) |
String | GetLine (Ogre::DataStreamPtr &stream) const |
![]() | |
static const String | TAG_COMMENT |
A comment tag. More... | |
VGears::TxzFileSerializer::TxzFileSerializer | ( | ) |
Constructor.
|
virtual |
Destructor.
struct VGears::TxzFileSerializer::WorldMapTexture VGears::TxzFileSerializer::__attribute__ | ( | (packed) | ) |
struct VGears::TxzFileSerializer::PsxPixel VGears::TxzFileSerializer::__attribute__ | ( | (packed) | ) |
struct VGears::TxzFileSerializer::PsxPixel4Bit VGears::TxzFileSerializer::__attribute__ | ( | (packed) | ) |
struct VGears::TxzFileSerializer::Rgba VGears::TxzFileSerializer::__attribute__ | ( | (packed) | ) |
|
private |
std::vector< std::vector< TxzFileSerializer::Rgba > > VGears::TxzFileSerializer::GetWorldMapTexture | ( | uint32 | id | ) |
Retrieves a texture color pixels from a texture ID.
[in] | id | ID of the texture. |
void VGears::TxzFileSerializer::Import | ( | Ogre::DataStreamPtr & | stream, |
TxzFile & | dest | ||
) |
Imports a TXZ file.
|
private |
Imports a texture from decompressed file contents.
[in] | stream | Contents of the decompressed file. |
[out] | dest | The texture data will be loaded here. |
|
private |
Partially imports a texture from decompressed file contents.
[in] | stream | Contents of the decompressed file. |
[out] | dest | The texture data will be loaded here. |
[in] | section_end | Bytes to import. |
struct VGears::TxzFileSerializer::VRamBlock VGears::TxzFileSerializer::__attribute__ |
The list of textures.
|
private |
The list of video RAM blocks.