Re: New Darwin Patch

Christopher Waters <[email protected]>
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.