aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual/example6/function.h
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-02-26 18:48:26 +0000
committerKenneth Russel <[email protected]>2006-02-26 18:48:26 +0000
commit0192562ce71078ce91cf02458ee92bc4603dc8ad (patch)
tree020dbae88647ea50021739a69b82a6c27e517129 /doc/manual/example6/function.h
parente24dc9a626d1548f67dc79b8f73c519c392bda33 (diff)
Added XGetVisualInfo and glXChooseFBConfig examples from JOGL.
Intended initial set of configuration file examples is now complete. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@19 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'doc/manual/example6/function.h')
-rw-r--r--doc/manual/example6/function.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/manual/example6/function.h b/doc/manual/example6/function.h
new file mode 100644
index 0000000..0517471
--- /dev/null
+++ b/doc/manual/example6/function.h
@@ -0,0 +1,23 @@
+typedef struct {} Display;
+typedef struct {} Visual;
+typedef unsigned long VisualID;
+
+typedef struct {
+ Visual *visual;
+ VisualID visualid;
+ int screen;
+ int depth;
+ int c_class; /* C++ */
+ unsigned long red_mask;
+ unsigned long green_mask;
+ unsigned long blue_mask;
+ int colormap_size;
+ int bits_per_rgb;
+} XVisualInfo;
+
+XVisualInfo *XGetVisualInfo(
+ Display* /* display */,
+ long /* vinfo_mask */,
+ XVisualInfo* /* vinfo_template */,
+ int* /* nitems_return */
+);