]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/opengl/gl/gl.factor
gtk: add library references.
[factor.git] / basis / opengl / gl / gl.factor
index ca4eec9dbd943674fd6ba6265ac24aa47ee8915a..32f769342488369415038d0dc2f1fbbc95b64d64 100644 (file)
@@ -3,8 +3,9 @@
 
 ! 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
 
@@ -628,6 +629,13 @@ CONSTANT: GL_CLIENT_ALL_ATTRIB_BITS         0xFFFFFFFF
 
 LIBRARY: gl
 
+<<
+"gl" {
+    { [ os macosx? ] [ drop ] }
+    { [ os unix? ] [ "libGL.so" cdecl add-library ] }
+} cond
+>>
+
 ! Miscellaneous
 
 FUNCTION: void glClearIndex ( GLfloat c ) ;