diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-01 11:01:31 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-04-01 12:33:45 -0700 |
commit | 0594cf70883b64692ba617d85f4f9b4e636e5c2b (patch) | |
tree | 4f0180af9c072c393e3d6270825953bf46a9152e /src/glx/apple/gen_types.tcl | |
parent | 86a7978d37393ee34f876569ac06ffdb8d7289ae (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.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 |