Skip to content
  • Jocelyn Turcotte's avatar
    Avoid relying on QOpenGL classes to handle RenderPasses · 3a7674a1
    Jocelyn Turcotte authored
    
    
    Use QSGLayer and get rid of RenderPassTexture so that we can render
    intermediate layers with the QtQuick 2D Renderer.
    This reintroduces the private dependency on QtQuick since the
    QSGLayer factory methods aren't available publically, and also that
    we need to use QSGImageNode instead of QSGSimpleTextureNode to use
    them.
    
    Since we can't subclass QSGLayer to hold a reference to SG objects
    directly in the nodes that use them, store them all in the wrapping
    DelegatedFrameNode in a SGObjects structs. This works assuming that
    the DelegatedFrameNode will always be at the root of our nodes,
    layers and textures; if the scene graph destroys the
    DelegatedFrameNode all child nodes will be destroyed with it.
    
    Change-Id: Iedeceb8f98eb54fd8228a677c366d6df9a270e11
    Reviewed-by: default avatarZeno Albisser <zeno.albisser@digia.com>
    3a7674a1