WIITD/raylib-freebasic

FreeBasic bindings for raylib

31

stars

17

commits

FreeBASIC

primary language

Dec 1, 2023

updated

bindings
cross-platform
freebasic
raylib

README

raylib-freebasic -> v5.0

FreeBasic bindings for raylib

LibLinuxWindowsMacBSD
raylib.bitestedtestednot testednot tested
raymath.bitestedtestednot testednot tested
raygui.bitestednot testednot testednot tested

example

#include "raylib.bi"

Dim As Const Integer screen_width = 800
Dim As Const Integer screen_height = 450

InitWindow(screen_width, screen_height, "Hello World")
SetTargetFPS(60)

While Not WindowShouldClose()
	BeginDrawing()
		ClearBackground(RAYWHITE)
		DrawText("Hello World from raylib and FreeBasic!", 200, 200, 20, GRAY)
	EndDrawing()
Wend

CloseWindow()

Example

compiling

you need to have raylib on your device, tested with shared lib but static lib should also work

raylib

linux

include raylib.bi in your project and it should work, all of dependencies are defined inside the file

windows

include raylib.bi in your project and it should work, all of dependencies are defined inside the file i primarily use linux so tests were mostly made using mingw and wine without encountering any issues some users had problems with linking, changing #include "raylib" to #include "raylibdll" helped

raygui

you have to either compile raygui with raylib or as a separate lib for more info i advice looking into this thread

for more info about building raylib visit official wiki and for raygui check official repo

examples

[examples][https://github.com/WIITD/raylib-freebasic/tree/main/examples] simple game i wrote that uses raylib-freebasic

Contributors

WIITD

16 commits

Shoozza

1 commits

WIITD/raylib-freebasic

FreeBasic bindings for raylib

31

stars

17

commits

FreeBASIC

primary language

Dec 1, 2023

updated

bindings
cross-platform
freebasic
raylib

README

raylib-freebasic -> v5.0

FreeBasic bindings for raylib

LibLinuxWindowsMacBSD
raylib.bitestedtestednot testednot tested
raymath.bitestedtestednot testednot tested
raygui.bitestednot testednot testednot tested

example

#include "raylib.bi"

Dim As Const Integer screen_width = 800
Dim As Const Integer screen_height = 450

InitWindow(screen_width, screen_height, "Hello World")
SetTargetFPS(60)

While Not WindowShouldClose()
	BeginDrawing()
		ClearBackground(RAYWHITE)
		DrawText("Hello World from raylib and FreeBasic!", 200, 200, 20, GRAY)
	EndDrawing()
Wend

CloseWindow()

Example

compiling

you need to have raylib on your device, tested with shared lib but static lib should also work

raylib

linux

include raylib.bi in your project and it should work, all of dependencies are defined inside the file

windows

include raylib.bi in your project and it should work, all of dependencies are defined inside the file i primarily use linux so tests were mostly made using mingw and wine without encountering any issues some users had problems with linking, changing #include "raylib" to #include "raylibdll" helped

raygui

you have to either compile raygui with raylib or as a separate lib for more info i advice looking into this thread

for more info about building raylib visit official wiki and for raygui check official repo

examples

[examples][https://github.com/WIITD/raylib-freebasic/tree/main/examples] simple game i wrote that uses raylib-freebasic

Contributors

WIITD

16 commits

Shoozza

1 commits

Languages

FreeBASIC

100.0%