PySide6.Qt3DExtras.Qt3DExtras.QForwardRenderer¶
- class QForwardRenderer¶
- The - QForwardRendererprovides a default FrameGraph implementation of a forward renderer. More…- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - buffersToClear()
- def - camera()
- def - clearColor()
- def - gamma()
- def - surface()
- def - viewportRect()
 - Slots¶
- def - setCamera()
- def - setClearColor()
- def - setGamma()
- def - setSurface()
 - Signals¶- Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - 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. - QForwardRendereris a single leaf FrameGraph tree which contains a- QViewport, a- QCameraSelector, and a- QClearBuffers. The- QForwardRendererhas 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. - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property buffersToClearᅟ: Qt3DRender.QClearBuffers.BufferType¶
 - Holds the current buffers to be cleared. Default value is ColorDepthBuffer - Access functions:
 - Holds the current camera entity used to render the scene. - Note - A camera is a QEntity that has a QCameraLens as one of its components. - Access functions:
- Signal - cameraChanged()
 
 - Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering. - Access functions:
 - Contains the size of the external render target. External render targets are relevant when rendering does not target a window surface (as set in - surface).- Access functions:
 - property frustumCullingᅟ: bool¶
 - Indicates if the renderer applies frustum culling to the scene. - Access functions:
 - property gammaᅟ: float¶
 - Holds the gamma value the renderer applies to the scene. - Access functions:
- Signal - gammaChanged()
 
 - property showDebugOverlayᅟ: bool¶
 - If true, a debug overlay will be rendered over the scene. It will show detailed information about the runtime rendering state, let the user turn logging on and off, etc. - Access functions:
 - Holds the current render surface. - Access functions:
 - Holds the current normalized viewport rectangle. - Access functions:
 - Holds the current render surface. - Access functions:
 - __init__([parent=None])¶
- Parameters:
- parent – - QNode
 
 - buffersToClear()¶
- Return type:
- BufferType
 - See also - setBuffersToClear()
 - Getter of property - buffersToClearᅟ.- buffersToClearChanged(arg__1)¶
- Parameters:
- arg__1 – - BufferType
 
 - Notification signal of property - buffersToClearᅟ.- camera()¶
- Return type:
- QEntity
 - See also - setCamera()
 - Getter of property - cameraᅟ.- cameraChanged(camera)¶
- Parameters:
- camera – - QEntity
 
 - Notification signal of property - cameraᅟ.- Getter of property - clearColorᅟ.- Notification signal of property - clearColorᅟ.- Getter of property - externalRenderTargetSizeᅟ.- Notification signal of property - externalRenderTargetSizeᅟ.- frustumCullingEnabledChanged(enabled)¶
- Parameters:
- enabled – bool 
 
 - Notification signal of property - frustumCullingᅟ.- gamma()¶
- Return type:
- float 
 - See also - setGamma()
 - Getter of property - gammaᅟ.- gammaChanged(gamma)¶
- Parameters:
- gamma – float 
 
 - Notification signal of property - gammaᅟ.- isFrustumCullingEnabled()¶
- Return type:
- bool 
 
 - Getter of property - frustumCullingᅟ.- setBuffersToClear(arg__1)¶
- Parameters:
- arg__1 – - BufferType
 - See also - buffersToClear()
 - Setter of property - buffersToClearᅟ.- setCamera(camera)¶
- Parameters:
- camera – - QEntity
 - See also - camera()
 - Setter of property - cameraᅟ.- Setter of property - clearColorᅟ.- Setter of property - externalRenderTargetSizeᅟ.- setFrustumCullingEnabled(enabled)¶
- Parameters:
- enabled – bool 
 - See also - isFrustumCullingEnabled()
 - Setter of property - frustumCullingᅟ.- setGamma(gamma)¶
- Parameters:
- gamma – float 
 - See also - gamma()
 - Setter of property - gammaᅟ.- setShowDebugOverlay(showDebugOverlay)¶
- Parameters:
- showDebugOverlay – bool 
 - See also - showDebugOverlay()
 - Setter of property - showDebugOverlayᅟ.- Setter of property - surfaceᅟ.- Setter of property - viewportRectᅟ.- showDebugOverlay()¶
- Return type:
- bool 
 - See also - setShowDebugOverlay()
 - Getter of property - showDebugOverlayᅟ.- showDebugOverlayChanged(showDebugOverlay)¶
- Parameters:
- showDebugOverlay – bool 
 
 - Notification signal of property - showDebugOverlayᅟ.- Getter of property - surfaceᅟ.- Notification signal of property - surfaceᅟ.- Getter of property - viewportRectᅟ.- Notification signal of property - viewportRectᅟ.