ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Public Member Functions | List of all members
TexFile Class Reference

#include <TexFile.h>

Inheritance diagram for TexFile:
Inheritance graph
[legend]
Collaboration diagram for TexFile:
Collaboration graph
[legend]

Public Types

enum  Version { None, FF7, FF8 }
 

Public Member Functions

 TexFile ()
 
 TexFile (const QByteArray &data)
 
 TexFile (const TextureFile &textureFile, const TexStruct &header, const QList< quint8 > &colorKeyArray=QList< quint8 >())
 
 ~TexFile ()
 
bool open (const QByteArray &data)
 
bool save (QByteArray &data)
 
TexFile scaled (const QSize &size) const
 
void setVersion (Version version)
 
void debug ()
 
- Public Member Functions inherited from TextureFile
 TextureFile ()
 
 TextureFile (const QImage &image)
 
 TextureFile (const QImage &image, const QList< QList< QRgb > > &colorTables)
 
bool isValid () const
 
void clear ()
 
const QImage & image () const
 
QImage * imagePtr ()
 
bool isPaletted () const
 
const QList< QList< QRgb > > & colorTables () const
 
qsizetype currentColorTable () const
 
QList< QRgb > colorTable (qsizetype id) const
 
void setCurrentColorTable (qsizetype id)
 
void setColorTable (qsizetype id, const QList< QRgb > &colorTable)
 
qsizetype colorTableCount () const
 
void debug () const
 

Additional Inherited Members

- Protected Attributes inherited from TextureFile
QImage _image
 
QList< QList< QRgb > > _colorTables
 
qsizetype _currentColorTable
 

Member Enumeration Documentation

◆ Version

Enumerator
None 
FF7 
FF8 

Constructor & Destructor Documentation

◆ TexFile() [1/3]

TexFile::TexFile ( )
inline

◆ TexFile() [2/3]

TexFile::TexFile ( const QByteArray &  data)
explicit

◆ TexFile() [3/3]

TexFile::TexFile ( const TextureFile textureFile,
const TexStruct header,
const QList< quint8 > &  colorKeyArray = QList<quint8>() 
)

◆ ~TexFile()

TexFile::~TexFile ( )
inline

Member Function Documentation

◆ debug()

void TexFile::debug ( )

◆ open()

bool TexFile::open ( const QByteArray &  data)

◆ save()

bool TexFile::save ( QByteArray &  data)

◆ scaled()

TexFile TexFile::scaled ( const QSize &  size) const

◆ setVersion()

void TexFile::setVersion ( Version  version)

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