[−][src]Struct qt_3d_render::QTextureData
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.
Methods
impl QTextureData
[src]
pub unsafe fn comparison_function(&self) -> ComparisonFunction
[src]
Returns the current comparison function.
Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonFunction Qt3DRender::QTextureData::comparisonFunction() const
.
Returns the current comparison function.
See also setComparisonFunction().
pub unsafe fn comparison_mode(&self) -> ComparisonMode
[src]
Returns the current comparison mode.
Calls C++ function: Qt3DRender::QAbstractTexture::ComparisonMode Qt3DRender::QTextureData::comparisonMode() const
.
Returns the current comparison mode.
See also setComparisonMode().
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QTextureData>>
) -> MutRef<QTextureData>
[src]
&mut self,
other: impl CastInto<Ref<QTextureData>>
) -> MutRef<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.
pub unsafe fn depth(&self) -> c_int
[src]
Returns the texture depth.
Calls C++ function: int Qt3DRender::QTextureData::depth() const
.
Returns the texture depth.
See also setDepth().
pub unsafe fn format(&self) -> TextureFormat
[src]
Returns the texture format
Calls C++ function: Qt3DRender::QAbstractTexture::TextureFormat Qt3DRender::QTextureData::format() const
.
Returns the texture format
See also setFormat().
pub unsafe fn height(&self) -> c_int
[src]
Returns the texture height.
Calls C++ function: int Qt3DRender::QTextureData::height() const
.
Returns the texture height.
See also setHeight().
pub unsafe fn is_auto_mip_map_generation_enabled(&self) -> bool
[src]
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.
pub unsafe fn layers(&self) -> c_int
[src]
Returns the texture layers.
Calls C++ function: int Qt3DRender::QTextureData::layers() const
.
Returns the texture layers.
See also setLayers().
pub unsafe fn magnification_filter(&self) -> Filter
[src]
Returns the current magnification filter.
Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QTextureData::magnificationFilter() const
.
Returns the current magnification filter.
See also setMagnificationFilter().
pub unsafe fn maximum_anisotropy(&self) -> c_float
[src]
Returns the current maximum anisotropy.
Calls C++ function: float Qt3DRender::QTextureData::maximumAnisotropy() const
.
Returns the current maximum anisotropy.
See also setMaximumAnisotropy().
pub unsafe fn minification_filter(&self) -> Filter
[src]
Returns the current minification filter.
Calls C++ function: Qt3DRender::QAbstractTexture::Filter Qt3DRender::QTextureData::minificationFilter() const
.
Returns the current minification filter.
See also setMinificationFilter().
pub unsafe fn new() -> CppBox<QTextureData>
[src]
Creates a new QTextureData instance.
Calls C++ function: [constructor] void Qt3DRender::QTextureData::QTextureData()
.
Creates a new QTextureData instance.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QTextureData>>
) -> CppBox<QTextureData>
[src]
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.
pub unsafe fn set_auto_mip_map_generation_enabled(
&mut self,
is_auto_mip_map_generation_enabled: bool
)
[src]
&mut 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().
pub unsafe fn set_comparison_function(
&mut self,
comparison_function: ComparisonFunction
)
[src]
&mut 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().
pub unsafe fn set_comparison_mode(&mut self, comparison_mode: ComparisonMode)
[src]
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().
pub unsafe fn set_depth(&mut self, depth: c_int)
[src]
Sets the texture depth to depth
Calls C++ function: void Qt3DRender::QTextureData::setDepth(int depth)
.
Sets the texture depth to depth
See also depth().
pub unsafe fn set_format(&mut self, arg1: TextureFormat)
[src]
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().
pub unsafe fn set_height(&mut self, height: c_int)
[src]
Sets the target height to height.
Calls C++ function: void Qt3DRender::QTextureData::setHeight(int height)
.
Sets the target height to height.
See also height().
pub unsafe fn set_layers(&mut self, layers: c_int)
[src]
Sets the texture layers to layers.
Calls C++ function: void Qt3DRender::QTextureData::setLayers(int layers)
.
Sets the texture layers to layers.
See also layers().
pub unsafe fn set_magnification_filter(&mut self, filter: Filter)
[src]
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().
pub unsafe fn set_maximum_anisotropy(&mut self, maximum_anisotropy: c_float)
[src]
Sets the maximum anisotropy to maximumAnisotropy.
Calls C++ function: void Qt3DRender::QTextureData::setMaximumAnisotropy(float maximumAnisotropy)
.
Sets the maximum anisotropy to maximumAnisotropy.
See also maximumAnisotropy().
pub unsafe fn set_minification_filter(&mut self, filter: Filter)
[src]
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().
pub unsafe fn set_target(&mut self, target: Target)
[src]
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().
pub unsafe fn set_width(&mut self, width: c_int)
[src]
Sets the texture width to width.
Calls C++ function: void Qt3DRender::QTextureData::setWidth(int width)
.
Sets the texture width to width.
See also width().
pub unsafe fn set_wrap_mode_x(&mut self, wrap_mode_x: WrapMode)
[src]
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().
pub unsafe fn set_wrap_mode_y(&mut self, wrap_mode_y: WrapMode)
[src]
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().
pub unsafe fn set_wrap_mode_z(&mut self, wrap_mode_z: WrapMode)
[src]
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().
pub unsafe fn target(&self) -> Target
[src]
Returns the texture data target.
Calls C++ function: Qt3DRender::QAbstractTexture::Target Qt3DRender::QTextureData::target() const
.
Returns the texture data target.
See also setTarget().
pub unsafe fn width(&self) -> c_int
[src]
Returns the texture width.
Calls C++ function: int Qt3DRender::QTextureData::width() const
.
Returns the texture width.
See also setWidth().
pub unsafe fn wrap_mode_x(&self) -> WrapMode
[src]
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().
pub unsafe fn wrap_mode_y(&self) -> WrapMode
[src]
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().
pub unsafe fn wrap_mode_z(&self) -> WrapMode
[src]
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().
Trait Implementations
impl CppDeletable for QTextureData
[src]
Auto Trait Implementations
impl RefUnwindSafe for QTextureData
impl Send for QTextureData
impl Sync for QTextureData
impl Unpin for QTextureData
impl UnwindSafe for QTextureData
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>,