#[repr(C)]pub struct QTextureData { /* private fields */ }Expand description
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
C++ class: Qt3DRender::QTextureData.
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
Implementations§
Source§impl QTextureData
impl QTextureData
Sourcepub unsafe fn comparison_function(&self) -> ComparisonFunction
pub unsafe fn comparison_function(&self) -> ComparisonFunction
Returns the current comparison function.
Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonFunction Qt3DRender::QTextureData::comparisonFunction() const.
Returns the current comparison function.
See also setComparisonFunction().
Sourcepub unsafe fn comparison_mode(&self) -> ComparisonMode
pub unsafe fn comparison_mode(&self) -> ComparisonMode
Returns the current comparison mode.
Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonMode Qt3DRender::QTextureData::comparisonMode() const.
Returns the current comparison mode.
See also setComparisonMode().
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTextureData>>,
) -> Ref<QTextureData>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QTextureData>>, ) -> Ref<QTextureData>
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
Calls C++ function: Qt3DRender::QTextureData& Qt3DRender::QTextureData::operator=(const Qt3DRender::QTextureData& other).
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
Sourcepub unsafe fn depth(&self) -> c_int
pub unsafe fn depth(&self) -> c_int
Returns the texture depth.
Calls C++ function: int Qt3DRender::QTextureData::depth() const.
Returns the texture depth.
See also setDepth().
Sourcepub unsafe fn format(&self) -> TextureFormat
pub unsafe fn format(&self) -> TextureFormat
Returns the texture format
Calls C++ function: Qt3DRender::QAbstractTexture::TextureFormat Qt3DRender::QTextureData::format() const.
Returns the texture format
See also setFormat().
Sourcepub unsafe fn height(&self) -> c_int
pub unsafe fn height(&self) -> c_int
Returns the texture height.
Calls C++ function: int Qt3DRender::QTextureData::height() const.
Returns the texture height.
See also setHeight().
Sourcepub unsafe fn is_auto_mip_map_generation_enabled(&self) -> bool
pub unsafe fn is_auto_mip_map_generation_enabled(&self) -> bool
Returns whether the texture has auto mipmap generation enabled.
Calls C++ function: bool Qt3DRender::QTextureData::isAutoMipMapGenerationEnabled() const.
Returns whether the texture has auto mipmap generation enabled.
Sourcepub unsafe fn layers(&self) -> c_int
pub unsafe fn layers(&self) -> c_int
Returns the texture layers.
Calls C++ function: int Qt3DRender::QTextureData::layers() const.
Returns the texture layers.
See also setLayers().
Sourcepub unsafe fn magnification_filter(&self) -> Filter
pub unsafe fn magnification_filter(&self) -> Filter
Returns the current magnification filter.
Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QTextureData::magnificationFilter() const.
Returns the current magnification filter.
See also setMagnificationFilter().
Sourcepub unsafe fn maximum_anisotropy(&self) -> c_float
pub unsafe fn maximum_anisotropy(&self) -> c_float
Returns the current maximum anisotropy.
Calls C++ function: float Qt3DRender::QTextureData::maximumAnisotropy() const.
Returns the current maximum anisotropy.
See also setMaximumAnisotropy().
Sourcepub unsafe fn minification_filter(&self) -> Filter
pub unsafe fn minification_filter(&self) -> Filter
Returns the current minification filter.
Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QTextureData::minificationFilter() const.
Returns the current minification filter.
See also setMinificationFilter().
Sourcepub unsafe fn new() -> CppBox<QTextureData>
pub unsafe fn new() -> CppBox<QTextureData>
Creates a new QTextureData instance.
Calls C++ function: [constructor] void Qt3DRender::QTextureData::QTextureData().
Creates a new QTextureData instance.
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTextureData>>,
) -> CppBox<QTextureData>
pub unsafe fn new_copy( other: impl CastInto<Ref<QTextureData>>, ) -> CppBox<QTextureData>
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
Calls C++ function: [constructor] void Qt3DRender::QTextureData::QTextureData(const Qt3DRender::QTextureData& other).
The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.
Sourcepub unsafe fn set_auto_mip_map_generation_enabled(
&self,
is_auto_mip_map_generation_enabled: bool,
)
pub unsafe fn set_auto_mip_map_generation_enabled( &self, is_auto_mip_map_generation_enabled: bool, )
Sets whether the texture has automatic mipmap generation enabled, to autoMipMap.
Calls C++ function: void Qt3DRender::QTextureData::setAutoMipMapGenerationEnabled(bool isAutoMipMapGenerationEnabled).
Sets whether the texture has automatic mipmap generation enabled, to autoMipMap.
See also isAutoMipMapGenerationEnabled().
Sourcepub unsafe fn set_comparison_function(
&self,
comparison_function: ComparisonFunction,
)
pub unsafe fn set_comparison_function( &self, comparison_function: ComparisonFunction, )
Sets the comparison function to comparisonFunction.
Calls C++ function: void Qt3DRender::QTextureData::setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction).
Sets the comparison function to comparisonFunction.
See also comparisonFunction().
Sourcepub unsafe fn set_comparison_mode(&self, comparison_mode: ComparisonMode)
pub unsafe fn set_comparison_mode(&self, comparison_mode: ComparisonMode)
Sets the comparison mode to comparisonMode.
Calls C++ function: void Qt3DRender::QTextureData::setComparisonMode(Qt3DRender::QAbstractTexture::ComparisonMode comparisonMode).
Sets the comparison mode to comparisonMode.
See also comparisonMode().
Sourcepub unsafe fn set_depth(&self, depth: c_int)
pub unsafe fn set_depth(&self, depth: c_int)
Sets the texture depth to depth
Calls C++ function: void Qt3DRender::QTextureData::setDepth(int depth).
Sets the texture depth to depth
See also depth().
Sourcepub unsafe fn set_format(&self, arg1: TextureFormat)
pub unsafe fn set_format(&self, arg1: TextureFormat)
Sets the texture format to format.
Calls C++ function: void Qt3DRender::QTextureData::setFormat(Qt3DRender::QAbstractTexture::TextureFormat arg1).
Sets the texture 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 target height to height.
Calls C++ function: void Qt3DRender::QTextureData::setHeight(int height).
Sets the target height to height.
See also height().
Sourcepub unsafe fn set_layers(&self, layers: c_int)
pub unsafe fn set_layers(&self, layers: c_int)
Sets the texture layers to layers.
Calls C++ function: void Qt3DRender::QTextureData::setLayers(int layers).
Sets the texture layers to layers.
See also layers().
Sourcepub unsafe fn set_magnification_filter(&self, filter: Filter)
pub unsafe fn set_magnification_filter(&self, filter: Filter)
Sets the magnification filter to filter.
Calls C++ function: void Qt3DRender::QTextureData::setMagnificationFilter(Qt3DRender::QAbstractTexture::Filter filter).
Sets the magnification filter to filter.
See also magnificationFilter().
Sourcepub unsafe fn set_maximum_anisotropy(&self, maximum_anisotropy: c_float)
pub unsafe fn set_maximum_anisotropy(&self, maximum_anisotropy: c_float)
Sets the maximum anisotropy to maximumAnisotropy.
Calls C++ function: void Qt3DRender::QTextureData::setMaximumAnisotropy(float maximumAnisotropy).
Sets the maximum anisotropy to maximumAnisotropy.
See also maximumAnisotropy().
Sourcepub unsafe fn set_minification_filter(&self, filter: Filter)
pub unsafe fn set_minification_filter(&self, filter: Filter)
Sets the minification filter to filter.
Calls C++ function: void Qt3DRender::QTextureData::setMinificationFilter(Qt3DRender::QAbstractTexture::Filter filter).
Sets the minification filter to filter.
See also minificationFilter().
Sourcepub unsafe fn set_target(&self, target: Target)
pub unsafe fn set_target(&self, target: Target)
Sets the target texture to target.
Calls C++ function: void Qt3DRender::QTextureData::setTarget(Qt3DRender::QAbstractTexture::Target target).
Sets the target texture to target.
See also target().
Sourcepub unsafe fn set_width(&self, width: c_int)
pub unsafe fn set_width(&self, width: c_int)
Sets the texture width to width.
Calls C++ function: void Qt3DRender::QTextureData::setWidth(int width).
Sets the texture width to width.
See also width().
Sourcepub unsafe fn set_wrap_mode_x(&self, wrap_mode_x: WrapMode)
pub unsafe fn set_wrap_mode_x(&self, wrap_mode_x: WrapMode)
Sets the wrap mode X to wrapModeX.
Calls C++ function: void Qt3DRender::QTextureData::setWrapModeX(Qt3DRender::QTextureWrapMode::WrapMode wrapModeX).
Sets the wrap mode X to wrapModeX.
See also wrapModeX().
Sourcepub unsafe fn set_wrap_mode_y(&self, wrap_mode_y: WrapMode)
pub unsafe fn set_wrap_mode_y(&self, wrap_mode_y: WrapMode)
Sets the wrap mode Y to wrapModeY.
Calls C++ function: void Qt3DRender::QTextureData::setWrapModeY(Qt3DRender::QTextureWrapMode::WrapMode wrapModeY).
Sets the wrap mode Y to wrapModeY.
See also wrapModeY().
Sourcepub unsafe fn set_wrap_mode_z(&self, wrap_mode_z: WrapMode)
pub unsafe fn set_wrap_mode_z(&self, wrap_mode_z: WrapMode)
Sets the wrap mode Z to wrapModeZ.
Calls C++ function: void Qt3DRender::QTextureData::setWrapModeZ(Qt3DRender::QTextureWrapMode::WrapMode wrapModeZ).
Sets the wrap mode Z to wrapModeZ.
See also wrapModeZ().
Sourcepub unsafe fn target(&self) -> Target
pub unsafe fn target(&self) -> Target
Returns the texture data target.
Calls C++ function: Qt3DRender::QAbstractTexture::Target Qt3DRender::QTextureData::target() const.
Returns the texture data target.
See also setTarget().
Sourcepub unsafe fn width(&self) -> c_int
pub unsafe fn width(&self) -> c_int
Returns the texture width.
Calls C++ function: int Qt3DRender::QTextureData::width() const.
Returns the texture width.
See also setWidth().
Sourcepub unsafe fn wrap_mode_x(&self) -> WrapMode
pub unsafe fn wrap_mode_x(&self) -> WrapMode
Returns the current wrap mode X.
Calls C++ function: Qt3DRender::QTextureWrapMode::WrapMode Qt3DRender::QTextureData::wrapModeX() const.
Returns the current wrap mode X.
See also setWrapModeX().
Sourcepub unsafe fn wrap_mode_y(&self) -> WrapMode
pub unsafe fn wrap_mode_y(&self) -> WrapMode
Returns the current wrap mode Y.
Calls C++ function: Qt3DRender::QTextureWrapMode::WrapMode Qt3DRender::QTextureData::wrapModeY() const.
Returns the current wrap mode Y.
See also setWrapModeY().
Sourcepub unsafe fn wrap_mode_z(&self) -> WrapMode
pub unsafe fn wrap_mode_z(&self) -> WrapMode
Returns the current wrap mode Z.
Calls C++ function: Qt3DRender::QTextureWrapMode::WrapMode Qt3DRender::QTextureData::wrapModeZ() const.
Returns the current wrap mode Z.
See also setWrapModeZ().