Advertisement
Guest User

Raylib HelloWorld in Pil21

a guest
Nov 20th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.58 KB | None | 0 0
  1. (setq screenWidth 800 screenHeight 450)
  2. (native "libraylib.so" "InitWindow" NIL screenWidth screenHeight "raylib [core] example - basic window")
  3.  
  4. (native "libraylib.so" "SetTargetFPS" NIL 60)
  5.  
  6. (while (=0 (native "libraylib.so" "WindowShouldClose" 'B))
  7.   (native "libraylib.so" "BeginDrawing")
  8.     (native "libraylib.so" "ClearBackground" NIL '(NIL (4 (B . 4)) 245 245 245 255) )
  9.     (native "libraylib.so" "DrawText" NIL "Congrats! You created your first window!" 190 200 20 '(V (4 (B . 4)) 200 200 200 255) ) 
  10.   (native "libraylib.so" "EndDrawing") )
  11. (native "libraylib.so" "CloseWindow")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement