! This file is based on the gl.h that comes with xorg-x11 6.8.2
-USING: alien alien.c-types alien.syntax combinators kernel parser
-sequences system words opengl.gl.extensions io.encodings.ascii ;
+USING: alien alien.c-types alien.libraries alien.syntax
+combinators kernel parser sequences system words
+opengl.gl.extensions io.encodings.ascii ;
FROM: alien.c-types => short ;
IN: opengl.gl
LIBRARY: gl
+<<
+"gl" {
+ { [ os macosx? ] [ drop ] }
+ { [ os unix? ] [ "libGL.so" cdecl add-library ] }
+} cond
+>>
+
! Miscellaneous
FUNCTION: void glClearIndex ( GLfloat c ) ;