Auf dieser Seite

Qt3DRender::QTextureImageData Class

class Qt3DRender::QTextureImageData

QTextureImageData speichert Daten, die eine Textur darstellen. Mehr...

Header: #include <qtextureimagedata.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Status: Veraltet

Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Öffentliche Funktionen

QTextureImageData()
int alignment() const
void cleanup()
QByteArray data(int layer = 0, int face = 0, int mipmapLevel = 0) const
int depth() const
int faces() const
QOpenGLTexture::TextureFormat format() const
int height() const
bool isCompressed() const
int layers() const
int mipLevels() const
QOpenGLTexture::PixelFormat pixelFormat() const
QOpenGLTexture::PixelType pixelType() const
void setAlignment(int alignment)
void setData(const QByteArray &data, int blockSize, bool isCompressed = false)
void setDepth(int depth)
void setFaces(int faces)
void setFormat(QOpenGLTexture::TextureFormat format)
void setHeight(int height)
void setImage(const QImage &image)
void setLayers(int layers)
void setMipLevels(int mipLevels)
void setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)
void setPixelType(QOpenGLTexture::PixelType pixelType)
void setTarget(QOpenGLTexture::Target target)
void setWidth(int width)
QOpenGLTexture::Target target() const
int width() const

Ausführliche Beschreibung

Dokumentation zu den Member-Funktionen

QTextureImageData::QTextureImageData()

Erstellt ein neues ` Qt3DRender::QTextureImageData`.

[noexcept] int QTextureImageData::alignment() const

Gibt die Ausrichtungsanforderung für das Bild zurück.

Siehe auch „ setAlignment()“.

[noexcept] void QTextureImageData::cleanup()

Gespeicherte Texturdaten entfernen und das Objekt in seinen Ausgangszustand zurücksetzen

QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const

Gibt die Rohbilddaten für die Textur auf der Ebene layer, der Fläche face und der Mipmap-Stufe mipmapLevel zurück.

Siehe auch setData().

[noexcept] int QTextureImageData::depth() const

Gibt die Tiefe der gespeicherten Textur zurück

Siehe auch ` setDepth()`.

[noexcept] int QTextureImageData::faces() const

Gibt die Anzahl der Flächen in der gespeicherten Textur zurück

Siehe auch setFaces().

[noexcept] QOpenGLTexture::TextureFormat QTextureImageData::format() const

Gibt das Format der gespeicherten Textur zurück.

Siehe auch ` setFormat()`.

[noexcept] int QTextureImageData::height() const

Gibt die Höhe der gespeicherten Textur zurück

Siehe auch „ setHeight()“.

[noexcept] bool QTextureImageData::isCompressed() const

Gibt „true“ zurück, wenn die gespeicherte Textur in einem komprimierten Format vorliegt

[noexcept] int QTextureImageData::layers() const

Gibt die Anzahl der Ebenen in der gespeicherten Textur zurück

Siehe auch setLayers().

[noexcept] int QTextureImageData::mipLevels() const

Gibt die Anzahl der Mip-Stufen in der gespeicherten Textur zurück

Siehe auch setMipLevels().

[noexcept] QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const

Gibt das Pixelformat der gespeicherten Textur zurück.

Siehe auch „ setPixelFormat()“.

[noexcept] QOpenGLTexture::PixelType QTextureImageData::pixelType() const

Gibt den Pixeltyp der gespeicherten Textur zurück.

Siehe auch ` setPixelType()`.

[noexcept] void QTextureImageData::setAlignment(int alignment)

Legt die Anforderungen an die „ alignment “ für das Image fest.

Siehe auch ` alignment()`.

void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)

Speichert die Daten data mit der Blockgröße blockSize und, falls die zu speichernden Daten komprimiert sind, isCompressed.

Siehe auch data().

[noexcept] void QTextureImageData::setDepth(int depth)

Stellt die Tiefe auf „ depth “ ein. setDepth

Siehe auch depth().

[noexcept] void QTextureImageData::setFaces(int faces)

Setzt die Flächen auf „ faces “. setFaces

Siehe auch „ faces()“.

[noexcept] void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)

Legt das Format auf „ format “ fest.

Siehe auch format().

[noexcept] void QTextureImageData::setHeight(int height)

Stellt die Höhe auf „ height “ ein. setHeight

Siehe auch height().

void QTextureImageData::setImage(const QImage &image)

Kopiert das Bild „ image “ als Rohdaten in dieses Objekt.

[noexcept] void QTextureImageData::setLayers(int layers)

Setzt die Ebenen auf „ layers “. setLayers

Siehe auch layers().

[noexcept] void QTextureImageData::setMipLevels(int mipLevels)

Setzt die Mip-Stufen auf „ mipLevels “. setMipLevels

Siehe auch mipLevels().

[noexcept] void QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)

Legt das Pixelformat auf „ pixelFormat “ fest.

Siehe auch ` pixelFormat()`.

[noexcept] void QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType)

Legt den Pixeltyp auf „ pixelType “ fest.

Siehe auch ` pixelType()`.

[noexcept] void QTextureImageData::setTarget(QOpenGLTexture::Target target)

Legt das Ziel auf target fest.

Siehe auch target().

[noexcept] void QTextureImageData::setWidth(int width)

Stellt die Breite auf „ width “ ein. setWidth

Siehe auch ` width()`.

[noexcept] QOpenGLTexture::Target QTextureImageData::target() const

Gibt das Ziel für die gespeicherte Textur zurück.

Siehe auch ` setTarget()`.

[noexcept] int QTextureImageData::width() const

Gibt die Breite der gespeicherten Textur zurück

Siehe auch setWidth().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.