]> gitweb.factorcode.org Git - factor.git/commitdiff
raylib.ffi: can lookup-library instead of find-library.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 17 Nov 2020 19:49:15 +0000 (11:49 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 17 Nov 2020 19:49:15 +0000 (11:49 -0800)
extra/raylib/ffi/ffi.factor

index 5e0bfd865d3666d1c079d3e7d07502a600382ef1..289ff33771ad81aa8ccfebbb9f62b557fccd16a5 100644 (file)
@@ -3,9 +3,9 @@
 ! These should be complete bindings to the Raylib library. (v2.5)
 ! Most of the comments are included from the original header
 ! for your convenience.
-USING: alien alien.c-types alien.enums alien.libraries
-alien.libraries.finder alien.syntax classes.struct combinators
-kernel quotations system vocabs ;
+USING: accessors alien alien.c-types alien.enums alien.libraries
+alien.syntax classes.struct combinators kernel quotations system
+vocabs ;
 IN: raylib.ffi
 <<
 "raylib" {
@@ -1023,7 +1023,7 @@ FUNCTION-ALIAS:  set-audio-stream-volume void SetAudioStreamVolume ( AudioStream
 FUNCTION-ALIAS:  set-audio-stream-pitch void SetAudioStreamPitch ( AudioStream stream, float pitch )                               ! Set pitch for audio stream  ( 1.0 is base level ) 
 
 ! Load modules depending on what the installed dll/so supports
-"raylib" find-library dlopen dup 
+"raylib" lookup-library dll>> dup
 ! Check for ricons symbols
 "DrawIcon" swap dlsym  [ "raylib.modules.ricons" require ] when
 ! Check for gui symbols