Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qktxhandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QKTXHANDLER_H
5#define QKTXHANDLER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20#include <optional>
21
23
24struct KTXHeader;
25
27{
28public:
30 ~QKtxHandler() override;
31
32 static bool canRead(const QByteArray &suffix, const QByteArray &block);
33
34 QTextureFileData read() override;
35
36private:
37 bool checkHeader(const KTXHeader &header);
38 std::optional<QMap<QByteArray, QByteArray>> decodeKeyValues(QByteArrayView view) const;
40
41 bool inverseEndian = false;
42};
43
45
46#endif // QKTXHANDLER_H
\inmodule QtCore
Definition qbytearray.h:57
static bool canRead(const QByteArray &suffix, const QByteArray &block)
~QKtxHandler() override
QTextureFileData read() override
QTextureFileHandler(QIODevice *device, const QByteArray &logName=QByteArray())
Combined button and popup list for selecting options.
static QString header(const QString &name)
GLuint GLfloat * val
unsigned int quint32
Definition qtypes.h:50
#define decode(x)
QQuickView * view
[0]