En esta página

NoDraw QML Type

Cuando un nodo NoDraw está presente en una rama FrameGraph, esto evita que el renderizador renderice cualquier primitiva. Más...

Import Statement: import Qt3D.Render 2.11
In C++: QNoDraw
Inherits:

FrameGraphNode

Status: Deprecated

Descripción detallada

NoDraw debería usarse cuando el FrameGraph necesita establecer algunos estados de renderizado o limpiar algunos buffers sin requerir que se dibuje ninguna malla. Tiene el mismo efecto que tener un Qt3DRender::QRenderPassFilter que no coincide con ninguna de las instancias Qt3DRender::QRenderPass disponibles de la escena sin el coste de realizar el filtrado.

Cuando está deshabilitado, un nodo NoDraw no impedirá que la escena sea renderizada. Alternar la propiedad enabled es, por tanto, una forma de activar o desactivar un NoDraw.

NoDraw se usa normalmente como hijo de un nodo ClearBuffers para evitar que se dibuje la escena cuando hay múltiples pases de render.

Viewport {
    CameraSelector {
        ClearBuffers {
            buffers: ClearBuffers.ColorDepthBuffer
            NoDraw { } // Prevents from drawing anything
        }
        RenderPassFilter {
            ...
        }
        RenderPassFilter {
            ...
        }
    }
}

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.