waffle — a library for selecting GL API and window system at runtime
#include <waffle.h> Link with -lwaffle-1.
Waffle is a cross-platform library that allows one to defer selection of GL API and of window system until runtime. For example, on Linux, Waffle enables an application to select X11/EGL with an OpenGL 3.3 core profile, Wayland with OpenGL ES2, and other window system / API combinations.
Waffle's immediate goal is to enable Piglit, Mesa's OpenGL test suite, to test multiple GL flavors in a cross-platform way, and to allow each Piglit test to choose its GL API and window system at runtime. A future goal is to enable the ability to record, with another tool such as APITrace, an application's GL calls on one operating system or window system, and then replay that trace on a different system.
waffle's website.
Your distribution should have installed
example source code that demonstrates how to use waffle at
/usr/share/doc/waffle-${version}/examples
.
You can also find example code on
waffle's website.
Website: http://people.freedesktop.org/~chadversary/waffle |
Source: git://people.freedesktop.org/~chadversary/waffle.git |
waffle_feature_test_macros(7) |