ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
src
formats
TextureFile.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2009 - 2022 Arzel Jérôme <myst6re@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
#pragma once
5
6
#include <QImage>
7
#include <ff7tkformats_export.h>
8
9
class
FF7TKFORMATS_EXPORT
TextureFile
10
{
11
public
:
12
TextureFile
();
13
explicit
TextureFile
(
const
QImage &image);
14
TextureFile
(
const
QImage &image,
const
QList<QList<QRgb> > &colorTables);
15
bool
isValid()
const
;
16
void
clear();
17
const
QImage &image()
const
;
18
QImage *imagePtr();
19
bool
isPaletted()
const
;
20
const
QList< QList<QRgb> > &colorTables()
const
;
21
qsizetype currentColorTable()
const
;
22
QList<QRgb> colorTable(qsizetype
id
)
const
;
23
void
setCurrentColorTable(qsizetype
id
);
24
void
setColorTable(qsizetype
id
,
const
QList<QRgb> &colorTable);
25
qsizetype colorTableCount()
const
;
26
void
debug()
const
;
27
protected
:
28
QImage
_image
;
29
QList< QList<QRgb> >
_colorTables
;
30
qsizetype
_currentColorTable
;
31
};
TextureFile::_image
QImage _image
Definition:
TextureFile.h:28
TextureFile::_currentColorTable
qsizetype _currentColorTable
Definition:
TextureFile.h:30
TextureFile::_colorTables
QList< QList< QRgb > > _colorTables
Definition:
TextureFile.h:29
TextureFile
Definition:
TextureFile.h:9
Generated by
1.8.17