I've gotten OpenGL 3.2 core profile rendering on OS-X.
It required some changes to the Cocoa config which are available here:
https://github.com/adamlwgriffiths/Pyglet

I also monkey patch the window at run time:
https://github.com/adamlwgriffiths/PyGLy/blob/master/pygly/gl/core/__init__.py

And disable the shadow window as suggested by another user who created the 
original cocoa patch:
https://github.com/adamlwgriffiths/PyGLy/blob/master/examples/core/window_creation/main.py


But I am unable to use any of the pyglet wrappers such as vertex_list or 
Label due to the use of Legacy profile code.

I'm happy to begin modifying these to patch out the legacy code.
But I want some feedback on how this should be done.
I don't want to maintain a branch of pyglet. I'd rather any changes could 
eventually be integrated.

Now that core works, I'm at the point where I either write my own simple 
wrappers (very tempting as I don't want anything heavy weight), or I help 
fix pyglet up.


My question is this:
Does anyone have any thoughts on how this should be done?
My thoughts at the moment are to make the legacy calls optional. By 
detecting if we're running in Core profile with no compatibility, we can 
'if' most of these statements out.
Is there any simple way to do this? Is there a boolean somewhere?

I can add one if there isn't. It would basically be:
if core profile AND not compatibility:
  core_only = True

Does this sound reasonable?


Cheers,
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyglet-users/-/0zN145z8vMQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to