[][src]Struct qt_3d_extras::QTextureMaterial

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

The QTextureMaterial provides a default implementation of a simple unlit texture material.

C++ class: Qt3DExtras::QTextureMaterial.

C++ documentation:

The QTextureMaterial provides a default implementation of a simple unlit texture material.

This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

Methods

impl QTextureMaterial[src]

pub fn slot_set_texture(&self) -> Receiver<(*mut QAbstractTexture,)>[src]

Holds the current texture used by the material.

Returns a built-in Qt slot Qt3DExtras::QTextureMaterial::setTexture that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub fn slot_set_texture_offset(&self) -> Receiver<(*const QVector2D,)>[src]

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Returns a built-in Qt slot Qt3DExtras::QTextureMaterial::setTextureOffset that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Access functions:

QVector2D textureOffset() const
void setTextureOffset(QVector2D textureOffset)

Notifier signal:

void textureOffsetChanged(QVector2D textureOffset)

pub fn texture_changed(&self) -> Signal<(*mut QAbstractTexture,)>[src]

Holds the current texture used by the material.

Returns a built-in Qt signal Qt3DExtras::QTextureMaterial::textureChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub fn texture_offset_changed(&self) -> Signal<(*const QVector2D,)>[src]

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Returns a built-in Qt signal Qt3DExtras::QTextureMaterial::textureOffsetChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Access functions:

QVector2D textureOffset() const
void setTextureOffset(QVector2D textureOffset)

Notifier signal:

void textureOffsetChanged(QVector2D textureOffset)

pub unsafe fn alpha_blending_enabled_changed(&mut self, enabled: bool)[src]

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Calls C++ function: void Qt3DExtras::QTextureMaterial::alphaBlendingEnabledChanged(bool enabled).

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn is_alpha_blending_enabled(&self) -> bool[src]

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Calls C++ function: bool Qt3DExtras::QTextureMaterial::isAlphaBlendingEnabled() const.

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DExtras::QTextureMaterial::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QNode>>
) -> QBox<QTextureMaterial>
[src]

Default constructs an instance of QTextureMaterial.

Calls C++ function: [constructor] void Qt3DExtras::QTextureMaterial::QTextureMaterial(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QTextureMaterial.

pub unsafe fn new_0a() -> QBox<QTextureMaterial>[src]

The QTextureMaterial provides a default implementation of a simple unlit texture material.

Calls C++ function: [constructor] void Qt3DExtras::QTextureMaterial::QTextureMaterial().

C++ documentation:

The QTextureMaterial provides a default implementation of a simple unlit texture material.

This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DExtras::QTextureMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* Qt3DExtras::QTextureMaterial::qt_metacast(const char* arg1).

pub unsafe fn set_alpha_blending_enabled(&mut self, enabled: bool)[src]

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Calls C++ function: void Qt3DExtras::QTextureMaterial::setAlphaBlendingEnabled(bool enabled).

C++ documentation:

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

Access functions:

bool isAlphaBlendingEnabled() const
void setAlphaBlendingEnabled(bool enabled)

Notifier signal:

void alphaBlendingEnabledChanged(bool enabled)

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn set_texture(
    &mut self,
    texture: impl CastInto<MutPtr<QAbstractTexture>>
)
[src]

Holds the current texture used by the material.

Calls C++ function: [slot] void Qt3DExtras::QTextureMaterial::setTexture(Qt3DRender::QAbstractTexture* texture).

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub unsafe fn set_texture_offset(
    &mut self,
    texture_offset: impl CastInto<Ref<QVector2D>>
)
[src]

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Calls C++ function: [slot] void Qt3DExtras::QTextureMaterial::setTextureOffset(QVector2D textureOffset).

C++ documentation:

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Access functions:

QVector2D textureOffset() const
void setTextureOffset(QVector2D textureOffset)

Notifier signal:

void textureOffsetChanged(QVector2D textureOffset)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn texture(&self) -> QMutPtr<QAbstractTexture>[src]

Holds the current texture used by the material.

Calls C++ function: Qt3DRender::QAbstractTexture* Qt3DExtras::QTextureMaterial::texture() const.

C++ documentation:

Holds the current texture used by the material.

Access functions:

Qt3DRender::QAbstractTexture *texture() const
void setTexture(Qt3DRender::QAbstractTexture *texture)

Notifier signal:

void textureChanged(Qt3DRender::QAbstractTexture *texture)

pub unsafe fn texture_offset(&self) -> CppBox<QVector2D>[src]

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Calls C++ function: QVector2D Qt3DExtras::QTextureMaterial::textureOffset() const.

C++ documentation:

Holds the current texture offset. It is applied to texture coordinates at render time. Defaults to (0.0, 0.0).

Access functions:

QVector2D textureOffset() const
void setTextureOffset(QVector2D textureOffset)

Notifier signal:

void textureOffsetChanged(QVector2D textureOffset)

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DExtras::QTextureMaterial::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DExtras::QTextureMaterial::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QMaterial>

pub fn slot_set_effect(&self) -> Receiver<(*mut QEffect,)>[src]

Specifies the effect to be used with the material.

Returns a built-in Qt slot Qt3DRender::QMaterial::setEffect that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

pub fn effect_changed(&self) -> Signal<(*mut QEffect,)>[src]

Specifies the effect to be used with the material.

Returns a built-in Qt signal Qt3DRender::QMaterial::effectChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

pub unsafe fn add_parameter(
    &mut self,
    parameter: impl CastInto<MutPtr<QParameter>>
)
[src]

Add a parameter to the material's parameters.

Calls C++ function: void Qt3DRender::QMaterial::addParameter(Qt3DRender::QParameter* parameter).

C++ documentation:

Add a parameter to the material's parameters.

pub unsafe fn effect(&self) -> QMutPtr<QEffect>[src]

Specifies the effect to be used with the material.

Calls C++ function: Qt3DRender::QEffect* Qt3DRender::QMaterial::effect() const.

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QMaterial::metaObject() const.

pub unsafe fn parameters(&self) -> CppBox<QVectorOfQParameter>[src]

Returns a vector of the material's current parameters

Calls C++ function: QVector<Qt3DRender::QParameter*> Qt3DRender::QMaterial::parameters() const.

C++ documentation:

Returns a vector of the material's current parameters

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: i32,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
[src]

Calls C++ function: virtual int Qt3DRender::QMaterial::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* Qt3DRender::QMaterial::qt_metacast(const char* arg1).

pub unsafe fn remove_parameter(
    &mut self,
    parameter: impl CastInto<MutPtr<QParameter>>
)
[src]

Remove a parameter from the material's parameters.

Calls C++ function: void Qt3DRender::QMaterial::removeParameter(Qt3DRender::QParameter* parameter).

C++ documentation:

Remove a parameter from the material's parameters.

pub unsafe fn set_effect(&mut self, effect: impl CastInto<MutPtr<QEffect>>)[src]

Specifies the effect to be used with the material.

Calls C++ function: [slot] void Qt3DRender::QMaterial::setEffect(Qt3DRender::QEffect* effect).

C++ documentation:

Specifies the effect to be used with the material.

Access functions:

QEffect *effect() const
void setEffect(QEffect *effect)

Notifier signal:

void effectChanged(QEffect *effect)

Trait Implementations

impl CppDeletable for QTextureMaterial[src]

unsafe fn delete(&mut self)[src]

Destroys the QTextureMaterial instance.

Calls C++ function: virtual [destructor] void Qt3DExtras::QTextureMaterial::~QTextureMaterial().

C++ documentation:

Destroys the QTextureMaterial instance.

impl Deref for QTextureMaterial[src]

type Target = QMaterial

The resulting type after dereferencing.

fn deref(&self) -> &QMaterial[src]

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr).

impl DerefMut for QTextureMaterial[src]

fn deref_mut(&mut self) -> &mut QMaterial[src]

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr).

impl DynamicCast<QTextureMaterial> for QMaterial[src]

unsafe fn dynamic_cast(ptr: Ptr<QMaterial>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QMaterial>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr).

impl DynamicCast<QTextureMaterial> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QComponent>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QTextureMaterial> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QTextureMaterial> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* dynamic_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr).

impl StaticDowncast<QTextureMaterial> for QMaterial[src]

unsafe fn static_downcast(ptr: Ptr<QMaterial>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QMaterial>
) -> MutPtr<QTextureMaterial>
[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DRender::QMaterial* ptr).

impl StaticDowncast<QTextureMaterial> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QComponent>
) -> MutPtr<QTextureMaterial>
[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QTextureMaterial> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QTextureMaterial> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QTextureMaterial>[src]

Calls C++ function: Qt3DExtras::QTextureMaterial* static_cast<Qt3DExtras::QTextureMaterial*>(QObject* ptr).

impl StaticUpcast<QComponent> for QTextureMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QTextureMaterial>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTextureMaterial* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextureMaterial>) -> MutPtr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DExtras::QTextureMaterial* ptr).

impl StaticUpcast<QMaterial> for QTextureMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QTextureMaterial>) -> Ptr<QMaterial>[src]

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextureMaterial>) -> MutPtr<QMaterial>[src]

Calls C++ function: Qt3DRender::QMaterial* static_cast<Qt3DRender::QMaterial*>(Qt3DExtras::QTextureMaterial* ptr).

impl StaticUpcast<QNode> for QTextureMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QTextureMaterial>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTextureMaterial* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextureMaterial>) -> MutPtr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QTextureMaterial* ptr).

impl StaticUpcast<QObject> for QTextureMaterial[src]

unsafe fn static_upcast(ptr: Ptr<QTextureMaterial>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QTextureMaterial* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QTextureMaterial>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QTextureMaterial* ptr).

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.