PDA

View Full Version : aglShareLists()?


rvangaal
2003.03.25, 07:11 AM
Hi,

Yesterday I searched for aglShareLists(), the equivalent of wglShareLists() on Win32's WGL, and Unix' glXCreateContext(...,shareContext). I couldn't find it however.

I did think I saw this function in an earlier Mac OSX?!
Anyway, what I'm trying to do is share the texture space between 2 contexts; I need that for my apps to work correctly over multiple platforms (Unix-GLX/Win32/Mac). Is there anything I can do to share textures over 2 OpenGL contexts?

BTW My 10.2.3 OpenGL framework is version 1.2.1; the gl.h file though include defines for upto OpenGL1.4. Is it safe to use OpenGL1.4 functions then?

Thanks.

Hog
2003.03.25, 11:28 AM
you can pass the first context to the second when calling

AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share);

rvangaal
2003.03.25, 12:01 PM
Ah, thanks!
How I could have missed that...? :blush: