QTextureImageData stores data representing a texture. 更多...
| 頭: |
#include <QTextureImageData>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
|
| qmake: |
QT += 3drender
|
| 狀態: | 棄用 |
| 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 |
構造新的 Qt3DRender::QTextureImageData .
[noexcept]
int
QTextureImageData::
alignment
() const
Returns the alignment requirement for the image.
另請參閱 setAlignment ().
[noexcept]
void
QTextureImageData::
cleanup
()
Remove stored texture data and return the object to its initial state
Returns the raw image data for the texture at layer layer , face face and mipmapLevel mipmapLevel .
另請參閱 setData ().
[noexcept]
int
QTextureImageData::
depth
() const
Returns the depth of the stored texture
另請參閱 setDepth ().
[noexcept]
int
QTextureImageData::
faces
() const
Returns the number of faces in the stored texture
另請參閱 setFaces ().
[noexcept]
QOpenGLTexture::TextureFormat
QTextureImageData::
format
() const
Returns the format of the stored texture.
另請參閱 setFormat ().
[noexcept]
int
QTextureImageData::
height
() const
Returns the height of the stored texture
另請參閱 setHeight ().
[noexcept]
bool
QTextureImageData::
isCompressed
() const
Returns true if the stored texture is in a compressed format
[noexcept]
int
QTextureImageData::
layers
() const
Returns the number of layers in the stored texture
另請參閱 setLayers ().
[noexcept]
int
QTextureImageData::
mipLevels
() const
Returns the number of mip levels in the stored texture
另請參閱 setMipLevels ().
[noexcept]
QOpenGLTexture::PixelFormat
QTextureImageData::
pixelFormat
() const
Returns the pixel format of the stored texture.
另請參閱 setPixelFormat ().
[noexcept]
QOpenGLTexture::PixelType
QTextureImageData::
pixelType
() const
Returns the pixel type of the stored texture.
另請參閱 setPixelType ().
[noexcept]
void
QTextureImageData::
setAlignment
(
int
alignment
)
設置 alignment requirements for the image.
另請參閱 alignment ().
Stores the data data with blocksize blockSize and if the data to be stored is compressed isCompressed .
另請參閱 data ().
[noexcept]
void
QTextureImageData::
setDepth
(
int
depth
)
Sets the depth to depth . setDepth
另請參閱 depth ().
[noexcept]
void
QTextureImageData::
setFaces
(
int
faces
)
Sets the faces to faces . setFaces
另請參閱 faces ().
[noexcept]
void
QTextureImageData::
setFormat
(
QOpenGLTexture::TextureFormat
format
)
Sets the format to format .
另請參閱 format ().
[noexcept]
void
QTextureImageData::
setHeight
(
int
height
)
Sets the height to height . setHeight
另請參閱 height ().
Copies the image image as raw data within this object.
[noexcept]
void
QTextureImageData::
setLayers
(
int
layers
)
Sets the layers to layers . setLayers
另請參閱 layers ().
[noexcept]
void
QTextureImageData::
setMipLevels
(
int
mipLevels
)
Sets the mip levels to mipLevels . setMipLevels
另請參閱 mipLevels ().
[noexcept]
void
QTextureImageData::
setPixelFormat
(
QOpenGLTexture::PixelFormat
pixelFormat
)
Sets the pixel format to pixelFormat .
另請參閱 pixelFormat ().
[noexcept]
void
QTextureImageData::
setPixelType
(
QOpenGLTexture::PixelType
pixelType
)
Sets the pixel type to pixelType .
另請參閱 pixelType ().
[noexcept]
void
QTextureImageData::
setTarget
(
QOpenGLTexture::Target
target
)
Sets the target to target .
另請參閱 target ().
[noexcept]
void
QTextureImageData::
setWidth
(
int
width
)
Sets the width to width . setWidth
另請參閱 width ().
[noexcept]
QOpenGLTexture::Target
QTextureImageData::
target
() const
Returns the target for the stored texture.
另請參閱 setTarget ().
[noexcept]
int
QTextureImageData::
width
() const
Returns the width of the stored texture
另請參閱 setWidth ().