Screen saver with shared contexts
Screen saver with shared contexts
- Subject: Screen saver with shared contexts
- From: David Remahl <email@hidden>
- Date: Wed, 19 Mar 2003 03:47:46 +0100
Dear list,
I am making an OpenGL screen saver which uses quite a few textures.
They are generated as the saver goes along, and not all available when
the saver starts. On a multiple display setup, I would like the
textures to be shared by all OpenGL contexts (NSOpenGLContexts used
without a mediating NSOpenGLView).
The problem is, that the ScreenSaver framework gives me few hints when
it comes to what contexts are related. I need to pass the first context
as the shared parameter when creating the second. What method for doing
this would you suggest?
I tried storing the first context created in a static variable and
using it as the shared parameter on subsequent inits, but that doesn't
work as I would like it to, presumably because the preview has its own
context.
Any ideas?
/ Rgds, David Remahl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.