| 
      
      
      From: Christopher W. <cr...@ms...> - 2004-07-15 18:49:22
      
     | 
| On Jul 15, 2004, at 11:58 AM, Jorge Luis Williams wrote: > I was running some experiments and I noticed that some AGL and GLX > programs generate CGL calls which are not documented. Have you run > into these problems? I always assumed one of the undocumented calls > linked the window with the context..is this what you're doing in the > render spu?? > Sorry, I forgot to reply to that last part. CGLSetSurface is one of the more important undocumented functions for attaching a context to a window, but that's not what I use in the render spu; well, not directly at least :) In the render spu, I'm using AGL to do all of the drawing and whatnot, which includes using aglSetDrawable to attach a context to a window/drawable. This isnt the linking I mentioned, though. What I was referring to was using the window's "RefCon" to store which context that window is using. This is used later in the other functions that need the context, but only have the window. It's a little trick I found in the sample programs that Apple has :) I am thinking of doing this in the fakerlib, but I am not sure if it would be ok to do this in there. I am looking into this right now. -Chris |