[−][src]Struct qt_3d_render::QTextureImageData
QTextureImageData stores data representing a texture.
C++ class: Qt3DRender::QTextureImageData
.
QTextureImageData stores data representing a texture.
Methods
impl QTextureImageData
[src]
pub unsafe fn cleanup(&mut self)
[src]
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
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QTextureImageData>>
) -> MutRef<QTextureImageData>
[src]
&mut self,
other: impl CastInto<Ref<QTextureImageData>>
) -> MutRef<QTextureImageData>
Copy-assignment operator.
Calls C++ function: Qt3DRender::QTextureImageData& Qt3DRender::QTextureImageData::operator=(const Qt3DRender::QTextureImageData& other)
.
Copy-assignment operator.
pub unsafe fn data_3a(
&self,
layer: c_int,
face: c_int,
mipmap_level: c_int
) -> CppBox<QByteArray>
[src]
&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().
pub unsafe fn data_2a(&self, layer: c_int, face: c_int) -> CppBox<QByteArray>
[src]
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().
pub unsafe fn data_1a(&self, layer: c_int) -> CppBox<QByteArray>
[src]
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().
pub unsafe fn data_0a(&self) -> CppBox<QByteArray>
[src]
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().
pub unsafe fn depth(&self) -> c_int
[src]
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().
pub unsafe fn faces(&self) -> c_int
[src]
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().
pub unsafe fn format(&self) -> TextureFormat
[src]
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().
pub unsafe fn height(&self) -> c_int
[src]
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().
pub unsafe fn is_compressed(&self) -> bool
[src]
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
pub unsafe fn layers(&self) -> c_int
[src]
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().
pub unsafe fn mip_levels(&self) -> c_int
[src]
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().
pub unsafe fn new() -> CppBox<QTextureImageData>
[src]
Constructs a new Qt3DRender::QTextureImageData.
Calls C++ function: [constructor] void Qt3DRender::QTextureImageData::QTextureImageData()
.
Constructs a new Qt3DRender::QTextureImageData.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QTextureImageData>>
) -> CppBox<QTextureImageData>
[src]
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.
pub unsafe fn pixel_format(&self) -> PixelFormat
[src]
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().
pub unsafe fn pixel_type(&self) -> PixelType
[src]
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().
pub unsafe fn set_data_3a(
&mut self,
data: impl CastInto<Ref<QByteArray>>,
block_size: c_int,
is_compressed: bool
)
[src]
&mut 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().
pub unsafe fn set_data_2a(
&mut self,
data: impl CastInto<Ref<QByteArray>>,
block_size: c_int
)
[src]
&mut 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().
pub unsafe fn set_depth(&mut self, depth: c_int)
[src]
Sets the depth to depth. setDepth
Calls C++ function: void Qt3DRender::QTextureImageData::setDepth(int depth)
.
Sets the depth to depth. setDepth
See also depth().
pub unsafe fn set_faces(&mut self, faces: c_int)
[src]
Sets the faces to faces. setFaces
Calls C++ function: void Qt3DRender::QTextureImageData::setFaces(int faces)
.
Sets the faces to faces. setFaces
See also faces().
pub unsafe fn set_format(&mut self, format: TextureFormat)
[src]
Sets the format to format.
Calls C++ function: void Qt3DRender::QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)
.
Sets the format to format.
See also format().
pub unsafe fn set_height(&mut self, height: c_int)
[src]
Sets the height to height. setHeight
Calls C++ function: void Qt3DRender::QTextureImageData::setHeight(int height)
.
Sets the height to height. setHeight
See also height().
pub unsafe fn set_image(&mut self, arg1: impl CastInto<Ref<QImage>>)
[src]
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
pub unsafe fn set_layers(&mut self, layers: c_int)
[src]
Sets the layers to layers. setLayers
Calls C++ function: void Qt3DRender::QTextureImageData::setLayers(int layers)
.
Sets the layers to layers. setLayers
See also layers().
pub unsafe fn set_mip_levels(&mut self, mip_levels: c_int)
[src]
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().
pub unsafe fn set_pixel_format(&mut self, pixel_format: PixelFormat)
[src]
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().
pub unsafe fn set_pixel_type(&mut self, pixel_type: PixelType)
[src]
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().
pub unsafe fn set_target(&mut self, target: Target)
[src]
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().
pub unsafe fn set_width(&mut self, width: c_int)
[src]
Sets the width to width. setWidth
Calls C++ function: void Qt3DRender::QTextureImageData::setWidth(int width)
.
Sets the width to width. setWidth
See also width().
pub unsafe fn target(&self) -> Target
[src]
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().
pub unsafe fn width(&self) -> c_int
[src]
Returns the width of the stored texture
Calls C++ function: int Qt3DRender::QTextureImageData::width() const
.
Returns the width of the stored texture
See also setWidth().
Trait Implementations
impl CppDeletable for QTextureImageData
[src]
Auto Trait Implementations
impl RefUnwindSafe for QTextureImageData
impl Send for QTextureImageData
impl Sync for QTextureImageData
impl Unpin for QTextureImageData
impl UnwindSafe for QTextureImageData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,