On Sat, 6 Jul 2002, Dr Andrew C Aitchison wrote:
> On Sat, 6 Jul 2002, Nick Name wrote:
>
> > Sorry to bother you all, but this is not the kind of question you can
> > ask google: have you ever heard of an X server implementation *for*
> > opengl? IE: an X server which runs on top of Opengl.
> >
> > I would like such a thing, because it could allow me to experiment
> > something like a 3d world with, say, an X server on a texture... sort of
> > backward-compatibility :))
>
> I don't think an X server on a texture would be hard to implement in
> XFree86. It would just be another driver for a new sort of hardware.
>
> My guess would be to start by looking at the shadowfb driver,
> which implements an X server framebuffer in system memory, and
> efficiently copies the bits which change into the real framebuffer.
> This does mean that your X server would not be hardware accelerated.
The Voodoo 1,2 driver in the tree essentially does that, but with
glide rather than OpenGL. One could do a similar thing with
glDrawPixels. Rendering the entire X11 primitive set in OpenGL
probably isn't possible because X11 has things that aren't in
OpenGL - like planemasks. So you'd have to fall back to a drawpixels
sort of implementation if you want a compliant implementation.
Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert