diff options
Diffstat (limited to 'src/glx/apple/gen_types.tcl')
-rw-r--r-- | src/glx/apple/gen_types.tcl | 32 |
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 |