On Mon, 2004-09-20 at 14:07, Keith Whitwell wrote:
> Amir Bukhari wrote:
> > On Mon, 2004-09-20 at 13:24, Keith Whitwell wrote:
> > 
> >>Amir Bukhari wrote:
> >>
> >>>All GL application are displayed at the end on a Window. this window are
> >>>traditional X Server window, which could be clipped, moved, etc.
> >>>I would like to add support to redirect the image, which should be
> >>>displayed at the end of rendering in a window to an off-screen or a
> >>>pixmap. I want to add this to XComposite extension.
> >>>
> >>>is that theoritical could be done? or there technical problem on the
> >>>current implementation in X server or DRI?
> >>
> >>Actually, GLX supports rendering to Pixmaps & PBuffers, which seems to be what 
> >>you're asking for, so no new extensions are required.  Have a look at the GLX 
> >>spec from opengl.org.
> >>
> > 
> > I will take a look to GLX specification.
> > what I want is not write an application which rendered to offscreen, I
> > want to redirect all GL applications to offscreen, like Composite
> > extension do for normal x window, but this not work for GL. the
> > application didn't know if it rendered to offscreen or directly to
> > screen. I want to get GL applications to be rendered all the time - when
> > I request - to offscreen, that mean the FRONT_BUFFER should be an memory
> > other than the framebuffer on display card. This only done with an
> > extension and Composite extension is created to do this work but the
> > current implementation does not support GL redirection, therefore I want
> > to implement this.
> 
> This is just a matter of telling the driver where you want it to believe the 
> front buffer is...  There are probably complications - eg. if the buffer moves 
> around, but this should all be able to be handled by extending the existing 
> DRI code and drivers.  You might need to add some new protocol to the DRI 
> extension, and you lose things like page flipping of course.
> 

that is correct if the client use DRI, but what if the applications use
GLX extension like "glxgeer". I think getting GLX is simpler than
getting DRI. for examlpe by catcing attaching GL to window and let GLX
assume this just a pixmap not a window, thus it will render it to a
pixmap.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to