QForwardRenderer

The QForwardRenderer provides a default FrameGraph implementation of a forward renderer. More

Inheritance diagram of PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer

Synopsis

Functions

Detailed Description

Forward rendering is what OpenGL traditionally uses. It renders directly to the backbuffer one object at a time shading each one as it goes.

QForwardRenderer is a single leaf FrameGraph tree which contains a QViewport , a QCameraSelector , and a QClearBuffers . The QForwardRenderer has a default requirement filter key whose name is “renderingStyle” and value “forward”. If you need to filter out your techniques, you should do so based on that filter key.

By default the viewport occupies the whole screen and the clear color is white. Frustum culling is also enabled.

class PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.buffersToClear()
Return type

BufferType

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.buffersToClearChanged(arg__1)
Parameters

arg__1BufferType

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.camera()
Return type

PySide6.Qt3DCore.Qt3DCore.QEntity

See also

setCamera()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.cameraChanged(camera)
Parameters

cameraPySide6.Qt3DCore.Qt3DCore.QEntity

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.clearColor()
Return type

PySide6.QtGui.QColor

See also

setClearColor()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.clearColorChanged(clearColor)
Parameters

clearColorPySide6.QtGui.QColor

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.externalRenderTargetSize()
Return type

PySide6.QtCore.QSize

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.externalRenderTargetSizeChanged(size)
Parameters

sizePySide6.QtCore.QSize

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.frustumCullingEnabledChanged(enabled)
Parameters

enabled – bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.gamma()
Return type

float

See also

setGamma()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.gammaChanged(gamma)
Parameters

gamma – float

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.isFrustumCullingEnabled()
Return type

bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setBuffersToClear(arg__1)
Parameters

arg__1BufferType

See also

buffersToClear()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setCamera(camera)
Parameters

cameraPySide6.Qt3DCore.Qt3DCore.QEntity

See also

camera()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setClearColor(clearColor)
Parameters

clearColorPySide6.QtGui.QColor

See also

clearColor()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setExternalRenderTargetSize(size)
Parameters

sizePySide6.QtCore.QSize

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setFrustumCullingEnabled(enabled)
Parameters

enabled – bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setGamma(gamma)
Parameters

gamma – float

See also

gamma()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setShowDebugOverlay(showDebugOverlay)
Parameters

showDebugOverlay – bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setSurface(surface)
Parameters

surfacePySide6.QtCore.QObject

See also

surface()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.setViewportRect(viewportRect)
Parameters

viewportRectPySide6.QtCore.QRectF

See also

viewportRect()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.showDebugOverlay()
Return type

bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.showDebugOverlayChanged(showDebugOverlay)
Parameters

showDebugOverlay – bool

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.surface()
Return type

PySide6.QtCore.QObject

See also

setSurface()

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.surfaceChanged(surface)
Parameters

surfacePySide6.QtCore.QObject

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.viewportRect()
Return type

PySide6.QtCore.QRectF

PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer.viewportRectChanged(viewportRect)
Parameters

viewportRectPySide6.QtCore.QRectF