]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
Rename device functions
authorJavier Sancho <jsf@jsancho.org>
Sat, 5 Oct 2019 17:12:55 +0000 (19:12 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sat, 5 Oct 2019 17:12:55 +0000 (19:12 +0200)
examples/hello.scm
irrlicht.scm

index cee3c64ff813554ad14b155fcf9316795f15e3a4..11c9bb8a9aa9fb17ed6a46c716fdec8af45c6bff 100644 (file)
@@ -26,6 +26,6 @@
 
 (set-window-caption! device "Hello World!")
 
-(while (run? device))
+(while (device-run? device))
 
-(drop! device)
+(device-drop! device)
index 46332419678ddef82136512c10d2aaff3a5ac0f8..5b405e3bfded66439a11999a9899353331324886 100644 (file)
@@ -28,8 +28,8 @@
             get-video-driver
             get-scene-manager
             set-window-caption!
-            run?
-            drop!))
+            device-run?
+            device-drop!))
 
 (define* (create-device #:optional
                         (device-type 'software)
@@ -61,8 +61,8 @@
 (define (set-window-caption! device text)
   (ffi:set-window-caption device (string->pointer text)))
 
-(define (run? device)
+(define (device-run? device)
   (if (> (ffi:run device) 0) #t #f))
 
-(define (drop! device)
+(define (device-drop! device)
   (if (> (ffi:drop device) 0) #t #f))