The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.9 (Linux)
File Line Function
/global.php 783 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.0.9 (Linux)
File Line Function
/global.php 783 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(844) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/global.php(844) : eval()'d code 34 errorHandler->error
/global.php 844 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.0.9 (Linux)
File Line Function
/global.php 909 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5116 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 5116 errorHandler->error
/global.php 909 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions.php 5136 is_member
/global.php 909 build_theme_select
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1440 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 1440 errorHandler->error
/inc/functions.php 1405 fetch_forum_permissions
/inc/functions.php 2934 forum_permissions
/showthread.php 645 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1977 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 1977 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 653 mark_thread_read
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(756) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/showthread.php(756) : eval()'d code 5 errorHandler->error
/showthread.php 756 eval
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 786 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 786 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 786 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 786 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 786 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 786 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 786 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 786 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "additionalgroups" - Line: 7277 - File: inc/functions.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions.php 7277 errorHandler->error
/inc/functions_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 662 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 662 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showimages" - Line: 743 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 743 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 748 - File: inc/functions_post.php PHP 8.0.9 (Linux)
File Line Function
/inc/functions_post.php 748 errorHandler->error
/showthread.php 1098 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1534 - File: showthread.php PHP 8.0.9 (Linux)
File Line Function
/showthread.php 1534 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1561) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/showthread.php(1561) : eval()'d code 30 errorHandler->error
/showthread.php 1561 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1561) : eval()'d code PHP 8.0.9 (Linux)
File Line Function
/showthread.php(1561) : eval()'d code 79 errorHandler->error
/showthread.php 1561 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C and Raylib
#1
Raylib is a simple library for creating games. I've tried it with Go, first, but using it with C is also extremely easy:

Code:
#include "raylib.h"

int main() {
   const int szerokosc = 900;
   const int wysokosc = 600;
   InitWindow(szerokosc, wysokosc, "C and Raylib example");
   SetTargetFPS(60);
   while (!WindowShouldClose()) {
       BeginDrawing();
            ClearBackground(WHITE);
            DrawText("As easy as BASIC!", 300, 40, 30, DARKGRAY);
            DrawLine(50, 90, 850, 90, BLACK);
            DrawCircle(450, 350, 10, DARKBLUE);
            DrawCircleGradient(450, 350, 150, YELLOW, DARKGREEN);
            DrawCircleLines(450, 350, 200, BLACK);
            DrawRectangleLines(10, 10, 880, 580, RED);
            DrawRectangleGradientH(50, 100, 50, 50, MAROON, GOLD);
            DrawRectangle(50, 500, 50, 50, BROWN);
            DrawRectangle(800, 100, 50, 50, DARKGRAY);
            DrawRectangleGradientH(800, 500, 50, 50, PURPLE, DARKBLUE);
       EndDrawing();
   }
   CloseWindow();
   return 0;
}

Website: https://www.raylib.com/
Pre-compiled binaries: https://github.com/raysan5/raylib
Reply
#2
nice find tomek  Wink
it looks like very simple openGL wrapper.
I think that i would try it with o2 compiler...
also when i looking into supported languages i stop on ODIN ?
hmm interesting one...
Reply
#3
There is also Euraylib for OpenEuphoria (it's been just released). You can use it with the interpreter or the translator. The only dependency needed is a single raylib.dll/raylib.so file. I can't understand how did we manage to miss it on retrogamecoding.org - this is a perfect solution for retro stuff.



Here is an example in Euphoria


Code:
include std/machine.e
include std/convert.e
include Euraylib.ew

InitWindow(256, 256,"Basic Drawings")
SetTargetFPS(1)

while not WindowShouldClose()  do    
    BeginDrawing()    
       ClearBackground(bytes_to_int({0, 0, 0, 255}))
       for x = 0 to 255 do
           for y = 0 to 255 do
               DrawPixel(x, y, bytes_to_int({255 - x, x,y, 255}))
           end for
       end for
    
    EndDrawing()
end while

CloseWindow()


I think Cybermonkey should have a look at it, so he could stop "fighting" with Allegro and SDL and jumping from one to another. It should be easy to use Raylib with the interpreter he's using now. Let him know. I'm not a member there anymore.
Reply
#4
Look
I am not in games and i am not messenger
and i really doubt that he is interested for this one because he like is own way .
this euphoria lib..hmm mm
i am not sure about that ...
currently i am in something else very different..so i will see...
Reply
#5
I really don't know..
I will try it tonight with Oxygen basic
so i will see what is that..

hey rick
i download whole zip from github
but there is no any compiled binary in dll form
then i look into source , i tried to compile but compiler complain about C99
compatibility mode ..ohh gee such a crap.
i don't know you can try
Reply
#6
https://github.com/raysan5/raylib/releases - pre-compiled binaries for Windows and Linux. I don't think you can use it with NaaLaa.

Aurel, one minute you seem to be interested, the next one you say you don't give a shit about it. At least I know why - you haven't been able to compile it from source or find pre-compiled libraries (really?). And no - you don't have to tell Cybermonkey anything. Don't take everything literally.
Reply
#7
tomek
In a ziped file i download there is no raylib.dll
second i tried to compile from source to create that freakin dll but comiler complain
about C99 thing so i give up .
thanks Rick for dll ,,i will try this openGL wrapper.... Big Grin 
and what a heck is with all this care about Cyb ,,,ask someone else
Reply
#8
Aurel, really? Instead of the source code, download the package with pre-compiled libraries included. Just for curiosity - what compiler did you use? On Linux, GCC compiles it without problems.
Reply
#9
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
#10
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)