[cairo] Re: How to use Cairo glitz backend in existing FLTK OpenGL window?

Bill Spitzak spitzak at d2.com
Tue Jul 25 16:43:36 PDT 2006


Can glitz be told to use an existing OpenGL context, or does it insist 
on creating it's own? Being able to use the existing current context 
would help a lot, in fact it would make this trivial. FLTK will swap the 
buffers for you and that is the only call that should be needed that 
needs the window id.

Joseph Lisee wrote:
> In article <1140450044.1907.19.camel at localhost.localdomain>,
>  Jeremy Moles <jeremy at emperorlinux.com> wrote:
> 
>> Basically, the gist of this is going to be:
>>
>> 1. Setup up your surface how you please (bound-to-window, pbuffer,
>> texture, etc.)
>>
>> 2. Create a glitz_context_t object to use as a handle to switch between
>> the glitz OpenGL context and your OpenGL context; (glXMakeCurrent and
>> glitz_context_make_current will be the ones here).


More information about the cairo mailing list