aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/glcaps.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-04-06 10:12:40 +0000
committerSven Gothel <[email protected]>2001-04-06 10:12:40 +0000
commitfd8682b066651abf71067c4d4266ffee302b69f6 (patch)
tree47cf449b25400628d61092a946270ead036e0d1e /CNativeCode/glcaps.c
parentee8232711affbf052576b038aee079250c985416 (diff)
2.7.0 release ..
Diffstat (limited to 'CNativeCode/glcaps.c')
-rw-r--r--CNativeCode/glcaps.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/CNativeCode/glcaps.c b/CNativeCode/glcaps.c
new file mode 100644
index 0000000..3f6c019
--- /dev/null
+++ b/CNativeCode/glcaps.c
@@ -0,0 +1,35 @@
+/**
+ * glcaps.c
+ *
+ * Copyright (C) 2001 Sven Goethel
+ *
+ * GNU Library General Public License
+ * as published by the Free Software Foundation
+ *
+ * http://www.gnu.org/copyleft/lgpl.html
+ * General dynamical loading OpenGL (GL/GLU) support for:
+ */
+
+#include "gltool.h"
+
+void LIBAPIENTRY printGLCapabilities ( GLCapabilities *glCaps )
+{
+ fprintf(stdout, "\t gl_supported: %d !\n", glCaps->gl_supported);
+ fprintf(stdout, "\t doubleBuff: %d, ", (int)glCaps->buffer);
+ fprintf(stdout, " rgba: %d, ", (int)glCaps->color);
+ fprintf(stdout, " stereo: %d, ", (int)glCaps->stereo);
+ fprintf(stdout, " depthSize: %d, ", (int)glCaps->depthBits);
+ fprintf(stdout, " stencilSize: %d !\n", (int)glCaps->stencilBits);
+ fprintf(stdout, "\t red: %d, ", (int)glCaps->redBits);
+ fprintf(stdout, " green: %d, ", (int)glCaps->greenBits);
+ fprintf(stdout, " blue: %d, ", (int)glCaps->blueBits);
+ fprintf(stdout, " alpha: %d !\n", (int)glCaps->alphaBits);
+ fprintf(stdout, "\t red accum: %d, ", (int)glCaps->accumRedBits);
+ fprintf(stdout, " green accum: %d, ", (int)glCaps->accumGreenBits);
+ fprintf(stdout, " blue accum: %d, ", (int)glCaps->accumBlueBits);
+ fprintf(stdout, " alpha accum: %d !\n", (int)glCaps->accumAlphaBits);
+ fprintf(stdout, "\t nativeVisualID: %ld !\n", (long)glCaps->nativeVisualID);
+
+ fflush(stdout);
+}
+