Skip to content
  • Robert Bragg's avatar
    stage: adds internal_get_active_framebuffer API · c739cb28
    Robert Bragg authored
    This adds an internal _clutter_stage_get_active_framebuffer function
    that can be used to get a pointer to the current CoglFramebuffer pointer
    that is in use, in association with a given stage.
    
    The "active" infix in the function name is there because we shouldn't
    assume that a stage will always correspond to only a single framebuffer
    so we aren't getting a pointer to a sole framebuffer, we are getting
    a pointer to the framebuffer that is currently in use/being painted.
    
    This API is now used for culling purposes where we need to check if we
    are currently painting an actor to a framebuffer that is offscreen, that
    doesn't correspond to the stage.
    c739cb28