Skip to content

Allow separate OpenGLContexts for multiple windows #4

@adamski

Description

@adamski

I'm using this project and module as a testbed for a multi-window app I am working on. For this use-case, I need both a SharedOpenGLContext for the main app window, and extra contexts for each "satellite" window.

It looks like a bit of refactoring would be needed to turn the SharedOpenGLContext into a wrapper that can have multiple instances. I would propose:

  • Move SharedOpenGLContext to e.g. OpenGLWrapper.
  • Refactor Plot2D to accept a reference to an OpenGLWrapper
  • Use e.g. SharedResourcePointer to make OpenGLWrapper a singleton (for the main window)

Is this something you'd be interested in merging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions