Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C and Raylib
#11
Cheatsheet for Raylib:

 https://www.raylib.com/cheatsheet/cheatsheet.html
Reply
#12
I really don't know what went wrong.
I download latst 2.5.0 version of raylib mingw32
and again whole bunch of errors with my version of mingw compiler.
i give up ...
maybe Rick have better luck with that and tell us more what is it.

damn
you tomek really pissed me off with this crap
but ok
i download latest gccm tdm mingw compiler pack from sourceforge
so i will see tomorrow what a heck is with this openGL crap
Strange thing is that i can compile fine windows app examples with my current compiler ???
Reply
#13
I managed to use Raylib with newLISP:

Code:
(import "./raylib.so" "InitWindow")
(import "./raylib.so" "SetTargetFPS")
(import "./raylib.so" "ClearBackground")
(import "./raylib.so" "WindowShouldClose")
(import "./raylib.so" "BeginDrawing")
(import "./raylib.so" "DrawText")
(import "./raylib.so" "EndDrawing")
(import "./raylib.so" "CloseWindow")

(define (color r g b a)
    (+ r (* 256 g) (* 256 256 b) (* 256 256 256 a)))

(InitWindow 900 600 "Test")
(SetTargetFPS 60)
(set 'x 10)
(set 'y 1)
(while (= 0 (WindowShouldClose))
    (if (> x 680)
        (set 'y -1))
    (if (< x 10)
        (set 'y 1))
    (inc x y)
    (println x)
    (BeginDrawing)
    (ClearBackground (color 255 0 0 255))
    (DrawText "newLISP" (int x) 100 50 (color 0 255 0 255))
    (EndDrawing))
(CloseWindow)
(exit)

I can't believe how easy that was.  Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)