ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
|
#include <TexFile.h>
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 |
enum TexFile::Version |
|
inline |
|
explicit |
TexFile::TexFile | ( | const TextureFile & | textureFile, |
const TexStruct & | header, | ||
const QList< quint8 > & | colorKeyArray = QList<quint8>() |
||
) |
|
inline |
void TexFile::debug | ( | ) |
bool TexFile::open | ( | const QByteArray & | data | ) |
bool TexFile::save | ( | QByteArray & | data | ) |
TexFile TexFile::scaled | ( | const QSize & | size | ) | const |
void TexFile::setVersion | ( | Version | version | ) |