[−][src]Struct qt_3d_render::QDepthTest
The QDepthTest class tests the fragment shader's depth value against the depth of a sample being written to.
C++ class: Qt3DRender::QDepthTest
.
The QDepthTest class tests the fragment shader's depth value against the depth of a sample being written to.
A QDepthTest class is used to enable depth testing with a given depth test function. The depth test enables writing fragment color values when the depth test passes, and reject fragments which fail the test. The depth test uses the depth function to test the fragments depth value to the value against z-buffer. If the underlying surface does not have z-buffer, then QDepthTest does nothing.
Methods
impl QDepthTest
[src]
pub fn slot_set_depth_function(&self) -> Receiver<(DepthFunction,)>
[src]
Holds the current function used by depth test. The default is Never.
Returns a built-in Qt slot Qt3DRender::QDepthTest::setDepthFunction
that can be passed to qt_core::Signal::connect
.
Holds the current function used by depth test. The default is Never.
Access functions:
DepthFunction | depthFunction() const |
void | setDepthFunction(DepthFunction depthFunction) |
Notifier signal:
void | depthFunctionChanged(DepthFunction depthFunction) |
pub fn depth_function_changed(&self) -> Signal<(DepthFunction,)>
[src]
Holds the current function used by depth test. The default is Never.
Returns a built-in Qt signal Qt3DRender::QDepthTest::depthFunctionChanged
that can be passed to qt_core::Signal::connect
.
Holds the current function used by depth test. The default is Never.
Access functions:
DepthFunction | depthFunction() const |
void | setDepthFunction(DepthFunction depthFunction) |
Notifier signal:
void | depthFunctionChanged(DepthFunction depthFunction) |
pub unsafe fn depth_function(&self) -> DepthFunction
[src]
Holds the current function used by depth test. The default is Never.
Calls C++ function: Qt3DRender::QDepthTest::DepthFunction Qt3DRender::QDepthTest::depthFunction() const
.
Holds the current function used by depth test. The default is Never.
Access functions:
DepthFunction | depthFunction() const |
void | setDepthFunction(DepthFunction depthFunction) |
Notifier signal:
void | depthFunctionChanged(DepthFunction depthFunction) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QDepthTest::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QDepthTest>
[src]
Default constructs an instance of QDepthTest.
Calls C++ function: [constructor] void Qt3DRender::QDepthTest::QDepthTest(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QDepthTest.
pub unsafe fn new_0a() -> QBox<QDepthTest>
[src]
The QDepthTest class tests the fragment shader's depth value against the depth of a sample being written to.
Calls C++ function: [constructor] void Qt3DRender::QDepthTest::QDepthTest()
.
The QDepthTest class tests the fragment shader's depth value against the depth of a sample being written to.
A QDepthTest class is used to enable depth testing with a given depth test function. The depth test enables writing fragment color values when the depth test passes, and reject fragments which fail the test. The depth test uses the depth function to test the fragments depth value to the value against z-buffer. If the underlying surface does not have z-buffer, then QDepthTest does nothing.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QDepthTest::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DRender::QDepthTest::qt_metacast(const char* arg1)
.
pub unsafe fn set_depth_function(&self, depth_function: DepthFunction)
[src]
Holds the current function used by depth test. The default is Never.
Calls C++ function: [slot] void Qt3DRender::QDepthTest::setDepthFunction(Qt3DRender::QDepthTest::DepthFunction depthFunction)
.
Holds the current function used by depth test. The default is Never.
Access functions:
DepthFunction | depthFunction() const |
void | setDepthFunction(DepthFunction depthFunction) |
Notifier signal:
void | depthFunctionChanged(DepthFunction depthFunction) |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QDepthTest::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QDepthTest::trUtf8(const char* s, const char* c, int n)
.
Methods from Deref<Target = QRenderState>
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QRenderState::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QRenderState::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DRender::QRenderState::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QDepthTest
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QDepthTest::~QDepthTest()
.
impl Deref for QDepthTest
[src]
type Target = QRenderState
The resulting type after dereferencing.
fn deref(&self) -> &QRenderState
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDepthTest* ptr)
.
impl DynamicCast<QDepthTest> for QRenderState
[src]
unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* dynamic_cast<Qt3DRender::QDepthTest*>(Qt3DRender::QRenderState* ptr)
.
impl DynamicCast<QDepthTest> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* dynamic_cast<Qt3DRender::QDepthTest*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QDepthTest> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* dynamic_cast<Qt3DRender::QDepthTest*>(QObject* ptr)
.
impl StaticDowncast<QDepthTest> for QRenderState
[src]
unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* static_cast<Qt3DRender::QDepthTest*>(Qt3DRender::QRenderState* ptr)
.
impl StaticDowncast<QDepthTest> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* static_cast<Qt3DRender::QDepthTest*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QDepthTest> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QDepthTest>
[src]
Calls C++ function: Qt3DRender::QDepthTest* static_cast<Qt3DRender::QDepthTest*>(QObject* ptr)
.
impl StaticUpcast<QNode> for QDepthTest
[src]
unsafe fn static_upcast(ptr: Ptr<QDepthTest>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QDepthTest* ptr)
.
impl StaticUpcast<QObject> for QDepthTest
[src]
unsafe fn static_upcast(ptr: Ptr<QDepthTest>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QDepthTest* ptr)
.
impl StaticUpcast<QRenderState> for QDepthTest
[src]
unsafe fn static_upcast(ptr: Ptr<QDepthTest>) -> Ptr<QRenderState>
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDepthTest* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QDepthTest
impl Send for QDepthTest
impl Sync for QDepthTest
impl Unpin for QDepthTest
impl UnwindSafe for QDepthTest
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]
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>,