#[repr(C)]pub struct QTextureImageData { /* private fields */ }Expand description
QTextureImageData stores data representing a texture.
C++ class: Qt3DRender::QTextureImageData.
QTextureImageData stores data representing a texture.
Implementations§
Source§impl QTextureImageData
impl QTextureImageData
Sourcepub unsafe fn cleanup(&self)
pub unsafe fn cleanup(&self)
Remove stored texture data and return the object to its initial state
Calls C++ function: void Qt3DRender::QTextureImageData::cleanup().
Remove stored texture data and return the object to its initial state
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextureImageData>>,
) -> Ref<QTextureImageData>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextureImageData>>, ) -> Ref<QTextureImageData>
Copy-assignment operator.
Calls C++ function: Qt3DRender::QTextureImageData& Qt3DRender::QTextureImageData::operator=(const Qt3DRender::QTextureImageData& other).
Copy-assignment operator.
Sourcepub unsafe fn data_3a(
&self,
layer: c_int,
face: c_int,
mipmap_level: c_int,
) -> CppBox<QByteArray>
pub unsafe fn data_3a( &self, layer: c_int, face: c_int, mipmap_level: c_int, ) -> CppBox<QByteArray>
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …, int face = …, int mipmapLevel = …) const.
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
See also setData().
Sourcepub unsafe fn data_2a(&self, layer: c_int, face: c_int) -> CppBox<QByteArray>
pub unsafe fn data_2a(&self, layer: c_int, face: c_int) -> CppBox<QByteArray>
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …, int face = …) const.
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
See also setData().
Sourcepub unsafe fn data_1a(&self, layer: c_int) -> CppBox<QByteArray>
pub unsafe fn data_1a(&self, layer: c_int) -> CppBox<QByteArray>
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data(int layer = …) const.
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
See also setData().
Sourcepub unsafe fn data_0a(&self) -> CppBox<QByteArray>
pub unsafe fn data_0a(&self) -> CppBox<QByteArray>
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
Calls C++ function: QByteArray Qt3DRender::QTextureImageData::data() const.
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel
See also setData().
Sourcepub unsafe fn depth(&self) -> c_int
pub unsafe fn depth(&self) -> c_int
Returns the depth of the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::depth() const.
Returns the depth of the stored texture
See also setDepth().
Sourcepub unsafe fn faces(&self) -> c_int
pub unsafe fn faces(&self) -> c_int
Returns the number of faces in the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::faces() const.
Returns the number of faces in the stored texture
See also setFaces().
Sourcepub unsafe fn format(&self) -> TextureFormat
pub unsafe fn format(&self) -> TextureFormat
Returns the format of the stored texture
Calls C++ function: QOpenGLTexture::TextureFormat Qt3DRender::QTextureImageData::format() const.
Returns the format of the stored texture
See also setFormat().
Sourcepub unsafe fn height(&self) -> c_int
pub unsafe fn height(&self) -> c_int
Returns the height of the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::height() const.
Returns the height of the stored texture
See also setHeight().
Sourcepub unsafe fn is_compressed(&self) -> bool
pub unsafe fn is_compressed(&self) -> bool
Returns true if the stored texture is in a compressed format
Calls C++ function: bool Qt3DRender::QTextureImageData::isCompressed() const.
Returns true if the stored texture is in a compressed format
Sourcepub unsafe fn layers(&self) -> c_int
pub unsafe fn layers(&self) -> c_int
Returns the number of layers in the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::layers() const.
Returns the number of layers in the stored texture
See also setLayers().
Sourcepub unsafe fn mip_levels(&self) -> c_int
pub unsafe fn mip_levels(&self) -> c_int
Returns the number of mip levels in the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::mipLevels() const.
Returns the number of mip levels in the stored texture
See also setMipLevels().
Sourcepub unsafe fn new() -> CppBox<QTextureImageData>
pub unsafe fn new() -> CppBox<QTextureImageData>
Constructs a new Qt3DRender::QTextureImageData.
Calls C++ function: [constructor] void Qt3DRender::QTextureImageData::QTextureImageData().
Constructs a new Qt3DRender::QTextureImageData.
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextureImageData>>,
) -> CppBox<QTextureImageData>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextureImageData>>, ) -> CppBox<QTextureImageData>
QTextureImageData stores data representing a texture.
Calls C++ function: [constructor] void Qt3DRender::QTextureImageData::QTextureImageData(const Qt3DRender::QTextureImageData& other).
QTextureImageData stores data representing a texture.
Sourcepub unsafe fn pixel_format(&self) -> PixelFormat
pub unsafe fn pixel_format(&self) -> PixelFormat
Returns the pixel format of the stored texture
Calls C++ function: QOpenGLTexture::PixelFormat Qt3DRender::QTextureImageData::pixelFormat() const.
Returns the pixel format of the stored texture
See also setPixelFormat().
Sourcepub unsafe fn pixel_type(&self) -> PixelType
pub unsafe fn pixel_type(&self) -> PixelType
Returns the pixel type of the stored texture
Calls C++ function: QOpenGLTexture::PixelType Qt3DRender::QTextureImageData::pixelType() const.
Returns the pixel type of the stored texture
See also setPixelType().
Sourcepub unsafe fn set_data_3a(
&self,
data: impl CastInto<Ref<QByteArray>>,
block_size: c_int,
is_compressed: bool,
)
pub unsafe fn set_data_3a( &self, data: impl CastInto<Ref<QByteArray>>, block_size: c_int, is_compressed: bool, )
Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed
Calls C++ function: void Qt3DRender::QTextureImageData::setData(const QByteArray& data, int blockSize, bool isCompressed = …).
Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed
See also data().
Sourcepub unsafe fn set_data_2a(
&self,
data: impl CastInto<Ref<QByteArray>>,
block_size: c_int,
)
pub unsafe fn set_data_2a( &self, data: impl CastInto<Ref<QByteArray>>, block_size: c_int, )
Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed
Calls C++ function: void Qt3DRender::QTextureImageData::setData(const QByteArray& data, int blockSize).
Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed
See also data().
Sourcepub unsafe fn set_depth(&self, depth: c_int)
pub unsafe fn set_depth(&self, depth: c_int)
Sets the depth to depth. setDepth
Calls C++ function: void Qt3DRender::QTextureImageData::setDepth(int depth).
Sets the depth to depth. setDepth
See also depth().
Sourcepub unsafe fn set_faces(&self, faces: c_int)
pub unsafe fn set_faces(&self, faces: c_int)
Sets the faces to faces. setFaces
Calls C++ function: void Qt3DRender::QTextureImageData::setFaces(int faces).
Sets the faces to faces. setFaces
See also faces().
Sourcepub unsafe fn set_format(&self, format: TextureFormat)
pub unsafe fn set_format(&self, format: TextureFormat)
Sets the format to format.
Calls C++ function: void Qt3DRender::QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format).
Sets the format to format.
See also format().
Sourcepub unsafe fn set_height(&self, height: c_int)
pub unsafe fn set_height(&self, height: c_int)
Sets the height to height. setHeight
Calls C++ function: void Qt3DRender::QTextureImageData::setHeight(int height).
Sets the height to height. setHeight
See also height().
Sourcepub unsafe fn set_image(&self, arg1: impl CastInto<Ref<QImage>>)
pub unsafe fn set_image(&self, arg1: impl CastInto<Ref<QImage>>)
Copies the image image as raw data within this object
Calls C++ function: void Qt3DRender::QTextureImageData::setImage(const QImage& arg1).
Copies the image image as raw data within this object
Sourcepub unsafe fn set_layers(&self, layers: c_int)
pub unsafe fn set_layers(&self, layers: c_int)
Sets the layers to layers. setLayers
Calls C++ function: void Qt3DRender::QTextureImageData::setLayers(int layers).
Sets the layers to layers. setLayers
See also layers().
Sourcepub unsafe fn set_mip_levels(&self, mip_levels: c_int)
pub unsafe fn set_mip_levels(&self, mip_levels: c_int)
Sets the mip levels to mipLevels. setMipLevels
Calls C++ function: void Qt3DRender::QTextureImageData::setMipLevels(int mipLevels).
Sets the mip levels to mipLevels. setMipLevels
See also mipLevels().
Sourcepub unsafe fn set_pixel_format(&self, pixel_format: PixelFormat)
pub unsafe fn set_pixel_format(&self, pixel_format: PixelFormat)
Sets the pixel format to pixelFormat. setPixelFormat
Calls C++ function: void Qt3DRender::QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat).
Sets the pixel format to pixelFormat. setPixelFormat
See also pixelFormat().
Sourcepub unsafe fn set_pixel_type(&self, pixel_type: PixelType)
pub unsafe fn set_pixel_type(&self, pixel_type: PixelType)
Sets the pixel type to pixelType setPixelType
Calls C++ function: void Qt3DRender::QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType).
Sets the pixel type to pixelType setPixelType
See also pixelType().
Sourcepub unsafe fn set_target(&self, target: Target)
pub unsafe fn set_target(&self, target: Target)
Sets the target to target. target
Calls C++ function: void Qt3DRender::QTextureImageData::setTarget(QOpenGLTexture::Target target).
Sets the target to target. target
See also target().
Sourcepub unsafe fn set_width(&self, width: c_int)
pub unsafe fn set_width(&self, width: c_int)
Sets the width to width. setWidth
Calls C++ function: void Qt3DRender::QTextureImageData::setWidth(int width).
Sets the width to width. setWidth
See also width().
Sourcepub unsafe fn target(&self) -> Target
pub unsafe fn target(&self) -> Target
Returns the target for the stored texture
Calls C++ function: QOpenGLTexture::Target Qt3DRender::QTextureImageData::target() const.
Returns the target for the stored texture
See also setTarget().