RenderState Class
class QSGMaterialShader::RenderStateThe QSGMaterialShader::RenderState encapsulates the current rendering state during a call to QSGMaterialShader::updateState(). More...
Public Types
| enum | DirtyState { DirtyMatrix, DirtyOpacity, DirtyCachedMaterialData, DirtyAll } |
Detailed Description
The render state contains a number of accessors that the shader needs to respect in order to conform to the current state of the scene graph.
The instance is only valid inside a call to QSGMaterialShader::updateState() and should not be used outisde this function.
Member Type Documentation
enum RenderState::DirtyState
| Constant | Value | Description |
|---|---|---|
QSGMaterialShader::RenderState::DirtyMatrix | 0x0001 | Used to indicate that the matrix has changed and must be updated. |
QSGMaterialShader::RenderState::DirtyOpacity | 0x0002 | Used to indicate that the opacity has changed and must be updated. |
QSGMaterialShader::RenderState::DirtyCachedMaterialData | 0x0004 | Used to indicate that the cached material data have changed and must be updated. |
QSGMaterialShader::RenderState::DirtyAll | 0xFFFF | Used to indicate that everything needs to be updated. |