[][src]Struct qt_3d_render::QTextureData

#[repr(C)]
pub struct QTextureData { /* fields omitted */ }

The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled.

C++ class: Qt3DRender::QTextureData.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

Returns the current comparison mode.

See also setComparisonMode().

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<QTextureData>>
) -> MutRef<QTextureData>
[src]

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).

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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().

C++ documentation:

Creates a new QTextureData instance.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QTextureData>>
) -> CppBox<QTextureData>
[src]

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).

C++ documentation:

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]

Sets whether the texture has automatic mipmap generation enabled, to autoMipMap.

Calls C++ function: void Qt3DRender::QTextureData::setAutoMipMapGenerationEnabled(bool isAutoMipMapGenerationEnabled).

C++ documentation:

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]

Sets the comparison function to comparisonFunction.

Calls C++ function: void Qt3DRender::QTextureData::setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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).

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

Returns the current wrap mode Z.

See also setWrapModeZ().

Trait Implementations

impl CppDeletable for QTextureData[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: [destructor] void Qt3DRender::QTextureData::~QTextureData().

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.