ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
TimFile.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 #pragma once
4 
5 #include <QImage>
6 #include <TextureFile>
7 #include <ff7tkformats_export.h>
8 
9 class FF7TKFORMATS_EXPORT TimFile : public TextureFile
10 {
11 public:
12  TimFile() : TextureFile(), bpp(0), palX(0), palY(0), palW(0), palH(0), imgX(0), imgY(0) {}
13  explicit TimFile(const QByteArray &data);
14  TimFile(const TextureFile &texture, quint8 bpp, quint16 palX, quint16 palY, quint16 palW, quint16 palH, quint16 imgX, quint16 imgY);
15  bool open(const QByteArray &data);
16  bool save(QByteArray &data) const;
17 private:
18  quint8 bpp;
19  quint32 sizeImgSection;
20  quint16 palX, palY;
21  quint16 palW, palH;
22  quint16 imgX, imgY;
23  QList<QBitArray> _alphaBits;
24 };
TimFile::TimFile
TimFile()
Definition: TimFile.h:12
TimFile
Definition: TimFile.h:9
TextureFile
Definition: TextureFile.h:9