summaryrefslogtreecommitdiff
path: root/src/glx/apple/gen_types.tcl
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-04-01 11:01:31 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2010-04-27 11:26:50 -0700
commitad503c41557606d15b0420c824369456f6d20a8f (patch)
tree7155272412f9b20b559fa172a1718fd8dfe6e98a /src/glx/apple/gen_types.tcl
parentf1381880a8e0e0cdd96c4c725ff35a28b250b09d (diff)
apple: Initial import of libGL for OSX from AppleSGLX svn repository.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/glx/apple/gen_types.tcl')
-rw-r--r--src/glx/apple/gen_types.tcl32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/glx/apple/gen_types.tcl b/src/glx/apple/gen_types.tcl
new file mode 100644
index 0000000000..ed20bdaec0
--- /dev/null
+++ b/src/glx/apple/gen_types.tcl
@@ -0,0 +1,32 @@
+
+proc main {argc argv} {
+ if {1 != $argc} {
+ puts stderr "syntax is: [info script] output.h"
+ exit 1
+ }
+
+ set fd [open [lindex $argv 0] w]
+ puts $fd "
+/*OpenGL primitive typedefs*/
+typedef unsigned int GLenum;
+typedef unsigned char GLboolean;
+typedef unsigned int GLbitfield;
+typedef signed char GLbyte;
+typedef short GLshort;
+typedef int GLint;
+typedef int GLsizei;
+typedef unsigned char GLubyte;
+typedef unsigned short GLushort;
+typedef unsigned int GLuint;
+typedef float GLfloat;
+typedef float GLclampf;
+typedef double GLdouble;
+typedef double GLclampd;
+typedef void GLvoid;
+
+typedef long GLintptr;
+typedef long GLsizeiptr;
+"
+
+}
+main $::argc $::argv