From: Daniel E. S. <dan...@gm...> - 2006-08-24 17:14:13
|
On 8/24/06, Brian Paul <bri...@tu...> wrote: > > Daniel E. Shipton wrote: > > I would like to have chromium render to a context that I have already > > created. > > You mean render to a window, right? A rendering context != a window. A passive window that already has a context that was created by another program for me. > Is the best way to do this is re-writing a render spu with that > > purpose? > > Have you seen the render SPU's 'render_to_app_window' option? I have seen the render_to_app_window, but this is for the desktop application, not the server(render nodes). I want the render nodes that are rendering the crapfaker graphics to be essentially injecting the OpenGL stream into this passive window. I ulitimately am going to be changing the OpenGL stream to cut out the view matrices and such but this is the first step before I get to that. > I hacked the render spu a bit for the prototype and got rid of > > any window/context creation calls and makeCurrent calls. What I really > > would like to do is just use Chromium to transport the graphics stream. > > I would like to be in charge of opening windows and contexts, and then > > telling chromium to render (insert the stream) into each > > window/context. Ideas? > > Well, if you don't want to mess with X windows or GLX at all, you can > use the native Chromium interface for creating windows, rendering > contexts, binding them, etc. See the cr/include/chromium.h file. I would like to avoid getting deep into X and GLX if possible ;) -Daniel |