Using OpenGL as a window manager

Jon Smirl jonsmirl at yahoo.com
Tue Apr 27 03:07:36 EST 2004


Were there any more ideas on how to do the window transform transparent to the
app using standard OpenGL. For example app thinks it is drawing into a
rectangle. xserver wants the image in a trapezoid. DRI is in use. 

One solution would be to insert a dummy OpenGL lib that intercepted the
appropriate calls. For example if the app sets the transform matrix back to
identity or if the clipping region is changed. Work this work to enforce the
windowing system's changes? Or do you need to intercept too many calls?

If 99% of the entry points in the dummy lib are noops, can the dynamic linker be
convinced to edit the code to bypass the dummy lib and call straight into the
real one? 

Using a dummy lib would also solve the problem of multiple OpenGL implementation
on the same machine. The dummy lib could use an ini file to choose which one it
wants to dynamically link to.

=====
Jon Smirl
jonsmirl at yahoo.com


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash



More information about the xserver mailing list