Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] First rushed attempt getting os x frame working #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

einarf
Copy link
Contributor

@einarf einarf commented Oct 15, 2019

Work in progress

Leaving this PR here hanging for a bit to share what I have done so far.

If anyone have any input on how to get the surface of the tkinter window and register it in the context?

CGLSetSurface connects a surface that is part of a window to a GL context

@einarf
Copy link
Contributor Author

einarf commented Oct 15, 2019

I have no idea yet. Thanks for the links. Will add that to the list of things to dig into.

Can let this PR hang here for a while. We can merge it if I give up this attempt, but we should probably disable the darwin import.

@einarf
Copy link
Contributor Author

einarf commented Oct 18, 2019

An alternative is using AGL : https://developer.apple.com/documentation/agl/agl

Probabably a good idea to do a deep dive into the internals in TkInter. I'll make a Frame implementation for both cgl and agl. Time will see what works out.

The togl 2.0 source is using agl and is a great reference!

@einarf
Copy link
Contributor Author

einarf commented Nov 23, 2019

Still have not forgotten about this one. I think using agl is the right path. Still doing local experiments for now until I figure out the best solution.

@einarf
Copy link
Contributor Author

einarf commented Jan 10, 2020

AGL seem to be the way to go. I just need to figure out how to get the proper window pointer.

@mitchell-merry
Copy link

Hi mate, what is the status on this PR? Just ran into this today while running vispy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants