[−][src]Struct qt_3d_render::QCullFace
The QCullFace class specifies whether front or back face culling is enabled.
C++ class: Qt3DRender::QCullFace
.
The QCullFace class specifies whether front or back face culling is enabled.
QCullFace sets whether the front or back facets are culled. Facets include triangles, quadrilaterals, polygons and rectangles.
It can be added by calling the addRenderState() method on a QRenderPass:
// using namespace Qt3DRender;
QRenderPass *renderPass = new QRenderPass();
// Create a front face culling render state QCullFace *cullFront = new QCullFace(); cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass renderPass->addRenderState(cullFront);
Or by calling the addRenderState() method on a QRenderStateSet:
// using namespace Qt3DRender;
QRenderStateSet *renderStateSet = new QRenderStateSet();
// Create a front face culling render state QCullFace *cullFront = new QCullFace(); cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass renderStateSet->addRenderState(cullFront);
Methods
impl QCullFace
[src]
pub fn slot_set_mode(&self) -> Receiver<(CullingMode,)>
[src]
Holds the culling mode used by QCullFace. Default is set to QCullFace.Back.
Returns a built-in Qt slot Qt3DRender::QCullFace::setMode
that can be passed to qt_core::Signal::connect
.
pub fn mode_changed(&self) -> Signal<(CullingMode,)>
[src]
Holds the culling mode used by QCullFace. Default is set to QCullFace.Back.
Returns a built-in Qt signal Qt3DRender::QCullFace::modeChanged
that can be passed to qt_core::Signal::connect
.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QCullFace::metaObject() const
.
pub unsafe fn mode(&self) -> CullingMode
[src]
Holds the culling mode used by QCullFace. Default is set to QCullFace.Back.
Calls C++ function: Qt3DRender::QCullFace::CullingMode Qt3DRender::QCullFace::mode() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QCullFace>
[src]
Default constructs an instance of QCullFace.
Calls C++ function: [constructor] void Qt3DRender::QCullFace::QCullFace(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QCullFace.
pub unsafe fn new_0a() -> QBox<QCullFace>
[src]
The QCullFace class specifies whether front or back face culling is enabled.
Calls C++ function: [constructor] void Qt3DRender::QCullFace::QCullFace()
.
The QCullFace class specifies whether front or back face culling is enabled.
QCullFace sets whether the front or back facets are culled. Facets include triangles, quadrilaterals, polygons and rectangles.
It can be added by calling the addRenderState() method on a QRenderPass:
// using namespace Qt3DRender;
QRenderPass *renderPass = new QRenderPass();
// Create a front face culling render state QCullFace *cullFront = new QCullFace(); cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass renderPass->addRenderState(cullFront);
Or by calling the addRenderState() method on a QRenderStateSet:
// using namespace Qt3DRender;
QRenderStateSet *renderStateSet = new QRenderStateSet();
// Create a front face culling render state QCullFace *cullFront = new QCullFace(); cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass renderStateSet->addRenderState(cullFront);
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::QCullFace::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::QCullFace::qt_metacast(const char* arg1)
.
pub unsafe fn set_mode(&self, mode: CullingMode)
[src]
Holds the culling mode used by QCullFace. Default is set to QCullFace.Back.
Calls C++ function: [slot] void Qt3DRender::QCullFace::setMode(Qt3DRender::QCullFace::CullingMode mode)
.
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::QCullFace::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::QCullFace::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 QCullFace
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QCullFace::~QCullFace()
.
impl Deref for QCullFace
[src]
type Target = QRenderState
The resulting type after dereferencing.
fn deref(&self) -> &QRenderState
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QCullFace* ptr)
.
impl DynamicCast<QCullFace> for QRenderState
[src]
unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* dynamic_cast<Qt3DRender::QCullFace*>(Qt3DRender::QRenderState* ptr)
.
impl DynamicCast<QCullFace> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* dynamic_cast<Qt3DRender::QCullFace*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QCullFace> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* dynamic_cast<Qt3DRender::QCullFace*>(QObject* ptr)
.
impl StaticDowncast<QCullFace> for QRenderState
[src]
unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* static_cast<Qt3DRender::QCullFace*>(Qt3DRender::QRenderState* ptr)
.
impl StaticDowncast<QCullFace> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* static_cast<Qt3DRender::QCullFace*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QCullFace> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QCullFace>
[src]
Calls C++ function: Qt3DRender::QCullFace* static_cast<Qt3DRender::QCullFace*>(QObject* ptr)
.
impl StaticUpcast<QNode> for QCullFace
[src]
unsafe fn static_upcast(ptr: Ptr<QCullFace>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QCullFace* ptr)
.
impl StaticUpcast<QObject> for QCullFace
[src]
unsafe fn static_upcast(ptr: Ptr<QCullFace>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QCullFace* ptr)
.
impl StaticUpcast<QRenderState> for QCullFace
[src]
unsafe fn static_upcast(ptr: Ptr<QCullFace>) -> Ptr<QRenderState>
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QCullFace* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QCullFace
impl Send for QCullFace
impl Sync for QCullFace
impl Unpin for QCullFace
impl UnwindSafe for QCullFace
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>,