[−][src]Struct qt_3d_extras::QTextureMaterial
The QTextureMaterial provides a default implementation of a simple unlit texture material.
C++ class: Qt3DExtras::QTextureMaterial
.
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
.
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
.
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
.
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
.
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)
.
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
.
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]
parent: impl CastInto<MutPtr<QNode>>
) -> QBox<QTextureMaterial>
Default constructs an instance of QTextureMaterial.
Calls C++ function: [constructor] void Qt3DExtras::QTextureMaterial::QTextureMaterial(Qt3DCore::QNode* parent = …)
.
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()
.
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]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
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]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
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)
.
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]
&mut self,
texture: impl CastInto<MutPtr<QAbstractTexture>>
)
Holds the current texture used by the material.
Calls C++ function: [slot] void Qt3DExtras::QTextureMaterial::setTexture(Qt3DRender::QAbstractTexture* texture)
.
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]
&mut self,
texture_offset: impl CastInto<Ref<QVector2D>>
)
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)
.
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
.
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
.
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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
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
.
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
.
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]
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
Add a parameter to the material's parameters.
Calls C++ function: void Qt3DRender::QMaterial::addParameter(Qt3DRender::QParameter* parameter)
.
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
.
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
.
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]
&mut self,
arg1: Call,
arg2: i32,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
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]
&mut self,
arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
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]
&mut self,
parameter: impl CastInto<MutPtr<QParameter>>
)
Remove a parameter from the material's parameters.
Calls C++ function: void Qt3DRender::QMaterial::removeParameter(Qt3DRender::QParameter* parameter)
.
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)
.
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()
.
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]
ptr: MutPtr<QMaterial>
) -> MutPtr<QTextureMaterial>
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]
ptr: MutPtr<QComponent>
) -> MutPtr<QTextureMaterial>
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
impl RefUnwindSafe for QTextureMaterial
impl Send for QTextureMaterial
impl Sync for QTextureMaterial
impl Unpin for QTextureMaterial
impl UnwindSafe for QTextureMaterial
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>,