[SDL] OSX and pBuffers?
James Tittle II
tigital at mac.com
Tue Aug 3 10:04:25 PDT 2004
...I've been trying to port some demos to SDL that use pbuffers...I
know, SDL12 doesn't include a pbuffer api, but I figured I could work
around that, but unfortunately I haven't been able to on OSX...
...my first attempt was to use the cgl pbuffer api's (because cgl
underlies all the other opengl api's on OSX), but these seem to be
broken (several bugs filed to apple)...now I'm looking at the quartz
video driver files in SDL, and realized that the underlying opengl
context is a NSOpenGLContext* (in SDL_PrivateVideoData)...
...so, does anyone have any ideas how to access this context, and if
possible, use it with the other apple pbuffer api's? For instance, it
seems that apple wants people to "share" contexts, so would I have to
use the NSOpenGL api for pbuffers? If so, can I do this thru plain old
c/c++, without using objc? Also, is it possible to use NSOpenGLContext
with cgl or agl pbuffer calls?
More information about the SDL