Qt3DRender::QDepthTest Class
class Qt3DRender::QDepthTestLa clase QDepthTest prueba el valor de profundidad del fragment shader contra la profundidad de una muestra que se está escribiendo. Más...
| Cabecera: | #include <QDepthTest> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | DepthTest |
| Hereda: | Qt3DRender::QRenderState |
| Status: | Obsoleto |
Tipos públicos
| enum | DepthFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual } |
Propiedades
- depthFunction : DepthFunction
Funciones públicas
| QDepthTest(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DRender::QDepthTest::DepthFunction | depthFunction() const |
Ranuras públicas
| void | setDepthFunction(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
Señales
| void | depthFunctionChanged(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
Descripción Detallada
Una clase QDepthTest se utiliza para habilitar la prueba de profundidad con una función de prueba de profundidad dada. La prueba de profundidad permite escribir valores de color de fragmentos cuando la prueba de profundidad pasa, y rechaza fragmentos que fallan la prueba. La prueba de profundidad utiliza la función depth para comprobar el valor de profundidad de los fragmentos con el valor contra el búfer z. Si la superficie subyacente no tiene z-buffer, entonces QDepthTest no hace nada.
Ver también QAlphaTest y QStencilTest.
Documentación de tipos de miembros
enum QDepthTest::DepthFunction
Enumeración de los valores de la función de profundidad
| Constante | Valor | Descripción |
|---|---|---|
Qt3DRender::QDepthTest::Never | 0x0200 | Nunca pasa la prueba de profundidad |
Qt3DRender::QDepthTest::Always | 0x0207 | Pasa siempre la prueba de profundidad |
Qt3DRender::QDepthTest::Less | 0x0201 | Pasa el test de profundidad si la profundidad del fragmento es menor que el valor del buffer z |
Qt3DRender::QDepthTest::LessOrEqual | 0x0203 | Pasa la prueba de profundidad si la profundidad del fragmento es menor o igual que el valor del búfer z |
Qt3DRender::QDepthTest::Equal | 0x0202 | Pasa la prueba de profundidad si la profundidad del fragmento es igual al valor del búfer z |
Qt3DRender::QDepthTest::GreaterOrEqual | 0x0206 | Pasa la prueba de profundidad si la profundidad del fragmento es mayor o igual que el valor del búfer z. |
Qt3DRender::QDepthTest::Greater | 0x0204 | Pasa la prueba de profundidad si la profundidad del fragmento es mayor que el valor del búfer z |
Qt3DRender::QDepthTest::NotEqual | 0x0205 | Pasa la prueba de profundidad si la profundidad del fragmento no es igual al valor del búfer z |
Documentación de propiedades
depthFunction : DepthFunction
Mantiene la función actual utilizada por la prueba de profundidad. Por defecto es Nunca.
Funciones de acceso:
| Qt3DRender::QDepthTest::DepthFunction | depthFunction() const |
| void | setDepthFunction(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
Señal del notificador:
| void | depthFunctionChanged(Qt3DRender::QDepthTest::DepthFunction depthFunction) |
Documentación de la función miembro
[explicit] QDepthTest::QDepthTest(Qt3DCore::QNode *parent = nullptr)
El constructor crea una nueva instancia de QDepthTest::QDepthTest con la dirección parent especificada.
© 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.