[][src]Struct qt_3d_render::QRenderTargetSelector

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

Provides a way of specifying a render target

C++ class: Qt3DRender::QRenderTargetSelector.

C++ documentation:

Provides a way of specifying a render target

A Qt3DRender::QRenderTargetSelector is used to select active Qt3DRender::QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the Qt3DRender::QRenderSurfaceSelector. A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in the QRenderTarget do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs in QRenderTarget.

Methods

impl QRenderTargetSelector[src]

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

Holds the current render target

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

C++ documentation:

Holds the current render target

Access functions:

QRenderTarget *target() const
void setTarget(QRenderTarget *target)

Notifier signal:

void targetChanged(QRenderTarget *target)

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

Holds the current render target

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

C++ documentation:

Holds the current render target

Access functions:

QRenderTarget *target() const
void setTarget(QRenderTarget *target)

Notifier signal:

void targetChanged(QRenderTarget *target)

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

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

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

Default constructs an instance of QRenderTargetSelector.

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

C++ documentation:

Default constructs an instance of QRenderTargetSelector.

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

Provides a way of specifying a render target

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

C++ documentation:

Provides a way of specifying a render target

A Qt3DRender::QRenderTargetSelector is used to select active Qt3DRender::QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the Qt3DRender::QRenderSurfaceSelector. A render buffer is automatically generated for an attachment point if drawBuffers contain attachment point that any output in the QRenderTarget do not specify. If the drawBuffers is empty, the renderer will default to using all the outputs in QRenderTarget.

pub unsafe fn outputs(&self) -> CppBox<QVectorOfAttachmentPoint>[src]

Returns the list of draw buffers for the current Qt3DRender::QRenderTargetSelector instance.

Calls C++ function: QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint> Qt3DRender::QRenderTargetSelector::outputs() const.

C++ documentation:

Returns the list of draw buffers for the current Qt3DRender::QRenderTargetSelector instance.

See also setOutputs().

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

Calls C++ function: virtual int Qt3DRender::QRenderTargetSelector::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::QRenderTargetSelector::qt_metacast(const char* arg1).

pub unsafe fn set_outputs(
    &self,
    buffers: impl CastInto<Ref<QVectorOfAttachmentPoint>>
)
[src]

Sets the draw buffers to be used. The draw buffers should be matching the Qt3DRender::QRenderTargetOutput::AttachmentPoint defined in the attachments of the Qt3DRender::QRenderTarget associated to the Qt3DRender::QRenderTargetSelector instance.

Calls C++ function: void Qt3DRender::QRenderTargetSelector::setOutputs(const QVector<Qt3DRender::QRenderTargetOutput::AttachmentPoint>& buffers).

C++ documentation:

Sets the draw buffers to be used. The draw buffers should be matching the Qt3DRender::QRenderTargetOutput::AttachmentPoint defined in the attachments of the Qt3DRender::QRenderTarget associated to the Qt3DRender::QRenderTargetSelector instance.

Note: At render time, if no draw buffer has been specified, the renderer will default to using all the attachments' draw buffers.

See also outputs().

pub unsafe fn set_target(&self, target: impl CastInto<Ptr<QRenderTarget>>)[src]

Holds the current render target

Calls C++ function: [slot] void Qt3DRender::QRenderTargetSelector::setTarget(Qt3DRender::QRenderTarget* target).

C++ documentation:

Holds the current render target

Access functions:

QRenderTarget *target() const
void setTarget(QRenderTarget *target)

Notifier signal:

void targetChanged(QRenderTarget *target)

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

Returns a reference to the staticMetaObject field.

pub unsafe fn target(&self) -> QPtr<QRenderTarget>[src]

Holds the current render target

Calls C++ function: Qt3DRender::QRenderTarget* Qt3DRender::QRenderTargetSelector::target() const.

C++ documentation:

Holds the current render target

Access functions:

QRenderTarget *target() const
void setTarget(QRenderTarget *target)

Notifier signal:

void targetChanged(QRenderTarget *target)

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

Calls C++ function: static QString Qt3DRender::QRenderTargetSelector::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]

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

Methods from Deref<Target = QFrameGraphNode>

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

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

pub unsafe fn parent_frame_graph_node(&self) -> QPtr<QFrameGraphNode>[src]

Returns a pointer to the parent.

Calls C++ function: Qt3DRender::QFrameGraphNode* Qt3DRender::QFrameGraphNode::parentFrameGraphNode() const.

C++ documentation:

Returns a pointer to the parent.

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

Calls C++ function: virtual int Qt3DRender::QFrameGraphNode::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::QFrameGraphNode::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QRenderTargetSelector[src]

unsafe fn delete(&self)[src]

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

impl Deref for QRenderTargetSelector[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QRenderTargetSelector* ptr).

impl DynamicCast<QRenderTargetSelector> for QFrameGraphNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QRenderTargetSelector>[src]

Calls C++ function: Qt3DRender::QRenderTargetSelector* dynamic_cast<Qt3DRender::QRenderTargetSelector*>(Qt3DRender::QFrameGraphNode* ptr).

impl DynamicCast<QRenderTargetSelector> for QNode[src]

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

Calls C++ function: Qt3DRender::QRenderTargetSelector* dynamic_cast<Qt3DRender::QRenderTargetSelector*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QRenderTargetSelector> for QObject[src]

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

Calls C++ function: Qt3DRender::QRenderTargetSelector* dynamic_cast<Qt3DRender::QRenderTargetSelector*>(QObject* ptr).

impl StaticDowncast<QRenderTargetSelector> for QFrameGraphNode[src]

unsafe fn static_downcast(
    ptr: Ptr<QFrameGraphNode>
) -> Ptr<QRenderTargetSelector>
[src]

Calls C++ function: Qt3DRender::QRenderTargetSelector* static_cast<Qt3DRender::QRenderTargetSelector*>(Qt3DRender::QFrameGraphNode* ptr).

impl StaticDowncast<QRenderTargetSelector> for QNode[src]

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

Calls C++ function: Qt3DRender::QRenderTargetSelector* static_cast<Qt3DRender::QRenderTargetSelector*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QRenderTargetSelector> for QObject[src]

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

Calls C++ function: Qt3DRender::QRenderTargetSelector* static_cast<Qt3DRender::QRenderTargetSelector*>(QObject* ptr).

impl StaticUpcast<QFrameGraphNode> for QRenderTargetSelector[src]

unsafe fn static_upcast(ptr: Ptr<QRenderTargetSelector>) -> Ptr<QFrameGraphNode>[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QRenderTargetSelector* ptr).

impl StaticUpcast<QNode> for QRenderTargetSelector[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QRenderTargetSelector* ptr).

impl StaticUpcast<QObject> for QRenderTargetSelector[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QRenderTargetSelector* 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.