Struct QTextureData

Source
#[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.

C++ documentation:

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

Implementations§

Source§

impl QTextureData

Source

pub unsafe fn comparison_function(&self) -> ComparisonFunction

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

Source

pub unsafe fn comparison_mode(&self) -> ComparisonMode

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

Source

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

C++ documentation:

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

Source

pub unsafe fn depth(&self) -> c_int

Returns the texture depth.

Calls C++ function: int Qt3DRender::QTextureData::depth() const.

C++ documentation:

Returns the texture depth.

See also setDepth().

Source

pub unsafe fn format(&self) -> TextureFormat

Returns the texture format

Calls C++ function: Qt3DRender::QAbstractTexture::TextureFormat Qt3DRender::QTextureData::format() const.

C++ documentation:

Returns the texture format

See also setFormat().

Source

pub unsafe fn height(&self) -> c_int

Returns the texture height.

Calls C++ function: int Qt3DRender::QTextureData::height() const.

C++ documentation:

Returns the texture height.

See also setHeight().

Source

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.

C++ documentation:

Returns whether the texture has auto mipmap generation enabled.

Source

pub unsafe fn layers(&self) -> c_int

Returns the texture layers.

Calls C++ function: int Qt3DRender::QTextureData::layers() const.

C++ documentation:

Returns the texture layers.

See also setLayers().

Source

pub unsafe fn magnification_filter(&self) -> Filter

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

Source

pub unsafe fn maximum_anisotropy(&self) -> c_float

Returns the current maximum anisotropy.

Calls C++ function: float Qt3DRender::QTextureData::maximumAnisotropy() const.

C++ documentation:

Returns the current maximum anisotropy.

See also setMaximumAnisotropy().

Source

pub unsafe fn minification_filter(&self) -> Filter

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

Source

pub unsafe fn new() -> CppBox<QTextureData>

Creates a new QTextureData instance.

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

C++ documentation:

Creates a new QTextureData instance.

Source

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

C++ documentation:

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

Source

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

C++ documentation:

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

See also isAutoMipMapGenerationEnabled().

Source

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

C++ documentation:

Sets the comparison function to comparisonFunction.

See also comparisonFunction().

Source

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

C++ documentation:

Sets the comparison mode to comparisonMode.

See also comparisonMode().

Source

pub unsafe fn set_depth(&self, depth: c_int)

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

Source

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

C++ documentation:

Sets the texture format to format.

See also format().

Source

pub unsafe fn set_height(&self, height: c_int)

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

Source

pub unsafe fn set_layers(&self, layers: c_int)

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

Source

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

C++ documentation:

Sets the magnification filter to filter.

See also magnificationFilter().

Source

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

C++ documentation:

Sets the maximum anisotropy to maximumAnisotropy.

See also maximumAnisotropy().

Source

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

C++ documentation:

Sets the minification filter to filter.

See also minificationFilter().

Source

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

C++ documentation:

Sets the target texture to target.

See also target().

Source

pub unsafe fn set_width(&self, width: c_int)

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

Source

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

C++ documentation:

Sets the wrap mode X to wrapModeX.

See also wrapModeX().

Source

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

C++ documentation:

Sets the wrap mode Y to wrapModeY.

See also wrapModeY().

Source

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

C++ documentation:

Sets the wrap mode Z to wrapModeZ.

See also wrapModeZ().

Source

pub unsafe fn target(&self) -> Target

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

Source

pub unsafe fn width(&self) -> c_int

Returns the texture width.

Calls C++ function: int Qt3DRender::QTextureData::width() const.

C++ documentation:

Returns the texture width.

See also setWidth().

Source

pub unsafe fn wrap_mode_x(&self) -> WrapMode

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

Source

pub unsafe fn wrap_mode_y(&self) -> WrapMode

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

Source

pub unsafe fn wrap_mode_z(&self) -> WrapMode

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§

Source§

impl CppDeletable for QTextureData

Source§

unsafe fn delete(&self)

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.