diff options
author | Sven Gothel <[email protected]> | 2010-12-13 02:26:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-13 02:26:48 +0100 |
commit | 84a76425dd10933a7ad033920a1e0ce12a2a107b (patch) | |
tree | 3f4b1c3d61edb539232bf6bbcf1e673cc011b1d4 /src/test/native/displayMultiple01.c | |
parent | 519776330c78e296d9868e959ddc64d00acac496 (diff) |
Cleanup test/junit structure. com.jogamp.test -> com.jogamp.opengl.text; Compile posted Issue* Bug* snippets
Diffstat (limited to 'src/test/native/displayMultiple01.c')
-rw-r--r-- | src/test/native/displayMultiple01.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/native/displayMultiple01.c b/src/test/native/displayMultiple01.c new file mode 100644 index 000000000..d51453687 --- /dev/null +++ b/src/test/native/displayMultiple01.c @@ -0,0 +1,18 @@ +#include <X11/X.h> +#include <X11/Xlib.h> +#include <X11/Xutil.h> +#include <GL/glx.h> +#include <stdio.h> + +int main(int nargs, char **vargs) { + int major, minor; + Display *disp = XOpenDisplay(NULL); + glXQueryVersion(disp, &major, &minor); + fprintf(stderr, "%p: %d.%d\n", disp, major, minor); + XCloseDisplay(disp); + disp = XOpenDisplay(NULL); + glXQueryVersion(disp, &major, &minor); + fprintf(stderr, "%p: %d.%d\n", disp, major, minor); + XCloseDisplay(disp); + return 0; +} |