Using OpenGL as a window manager
Jon Smirl <jonsmirl-/[email protected]> Mon, 26 Apr 2004 10:07:36 -0700 (PDT)
| Newsgroups | gmane.comp.freedesktop.xserver,gmane.comp.video.mesa3d.devel |
|---|---|
| Message-ID | <[email protected]> |
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-/[email protected] __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25ยข http://photos.yahoo.com/ph/print_splash