Switch OSMesa/implementation at runtime

Ardillas del Monte <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Message-ID <CA+fZqCVU3wrnN_HZuJTXExNmGkt5O0=-ijAvrrSi5y1Qid+_7w@mail.gmail.com>
Hi,

I'm planning a system which would need to use the (non-Mesa) system
implementation at some times, and OSMesa at other times (by "system
implementation" I mean whatever -commercial- system driver has the user
installed as provided by the hardware vendor of their graphics hardware).

The reason for this is that I need to render with floating point color (in
software) sometimes, while rendering the same scene at lower quality and
the fastest hardware-accelerated performance at other times.

I've thought some possibilities for doing this. The one I thought as most
realistic would be to put the Mesa implementation inside a C++ namespace,
and render OpenGL through a C++ object: if you select the OSMesa object,
commands are sent to the Mesa namespace, and if you select the system
object, commands are sent raw, with no namespace, to the system OpenGL
driver.

However, I don't know if there would be some approach more practical than
this, and moreover, maybe I'm ignoring some problem or issue I might face
with the namespace idea.

This software would need to run on OSX, Linux, and Windows, so I need
either an approach which would work on all these OSs, or a different
approach for each OS.

I'll appreciate any ideas or suggestions you might have.

Thanks a ton,

Ardi

_______________________________________________
mesa-users mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.