X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvogleditor%2Fvogleditor_qframebufferexplorer.h;h=3ece145cf8f244ba4a3a59c64accfe5759c55a5a;hb=HEAD;hp=c00025ca149c2713873c23ba9c7d1597621f398c;hpb=efdbc27f2074c559c8bbd4c118c45fda53e7aa7a;p=vogl diff --git a/src/vogleditor/vogleditor_qframebufferexplorer.h b/src/vogleditor/vogleditor_qframebufferexplorer.h index c00025c..3ece145 100644 --- a/src/vogleditor/vogleditor_qframebufferexplorer.h +++ b/src/vogleditor/vogleditor_qframebufferexplorer.h @@ -29,7 +29,7 @@ public: explicit vogleditor_QFramebufferExplorer(QWidget *parent = 0); ~vogleditor_QFramebufferExplorer(); - void set_framebuffer_objects(vogl_gl_object_state_ptr_vec objects, vogl_context_snapshot& context, vogl_default_framebuffer_state& defaultFramebufferState); + uint set_framebuffer_objects(vogl_context_snapshot* pContext, vogl::vector sharingContexts, vogl_default_framebuffer_state *pDefaultFramebufferState); bool set_active_framebuffer(unsigned long long framebufferHandle); @@ -44,16 +44,20 @@ private: QVBoxLayout* m_stencilExplorerLayout; vogleditor_QTextureExplorer* m_depthExplorer; vogleditor_QTextureExplorer* m_stencilExplorer; - vogl_context_snapshot* m_context; + vogl::vector m_sharing_contexts; vogl_default_framebuffer_state* m_pDefaultFramebufferState; void clearViewers(); - vogl_texture_state* get_texture_attachment(vogl_gl_object_state_ptr_vec* pObjectVec, unsigned int handle); - vogl_renderbuffer_state* get_renderbuffer_attachment(vogl_gl_object_state_ptr_vec* pObjectVec, unsigned int handle); + + uint set_default_framebuffer(vogl_default_framebuffer_state* pDefaultFramebufferState); + uint add_framebuffer_objects(vogl::vector sharingContexts, vogl_gl_object_state_ptr_vec objects); + + vogl_texture_state* get_texture_attachment(vogl_context_snapshot& context, unsigned int handle); + vogl_renderbuffer_state* get_renderbuffer_attachment(vogl_context_snapshot &context, unsigned int handle); private slots: void selectedFramebufferIndexChanged(int index); - void on_zoomFactorChanged(double zoomFactor); + void slot_zoomFactorChanged(double zoomFactor); }; #endif // VOGLEDITOR_QFRAMEBUFFEREXPLORER_H