I have ported the raylib headers and some examples to FreeBasic. The code is on my GitHub:
raylib is an easy to use graphics and audio library based on OpenGL and -AL.
raylib.com wrote:raylib features
- NO external dependencies, all required libraries included with raylib
- Multiplatform: Windows, Linux, MacOS, Android, HTML5... and more!
- Written in plain C code (C99) in PascalCase/camelCase notation
- Hardware accelerated with OpenGL (1.1, 2.1, 3.3 or ES 2.0)
- Unique OpenGL abstraction layer: rlgl
- Powerful Fonts module (XNA SpriteFonts, BMfonts, TTF, SDF)
- Outstanding texture formats support, including compressed formats (DXT, ETC, ASTC)
- Full 3d support for 3d Shapes, Models, Billboards, Heightmaps and more!
- Flexible Materials system, supporting classic maps and PBR maps
- Animated 3d models supported (skeletal bones animation)
- Shaders support, including Model shaders and Postprocessing shaders
- Powerful math module for Vector, Matrix and Quaternion operations
- Audio loading and playing with streaming support (WAV, OGG, MP3, FLAC, XM, MOD)
- VR stereo rendering support with configurable HMD device parameters
- Huge examples collection with +100 code examples!
- Bindings to +50 programming languages!
- Free and open source. Check [LICENSE].
Code: Select all
#include once "raylib.bi"
const screenWidth = 800
const screenHeight = 450
InitWindow(screenWidth, screenHeight, "Hello World")
while not WindowShouldClose()
DrawText("Hello World from raylib and FB!", 230, 200, 20, GRAY)
I have only tested it on Linux with the 64bit compiler. Be sure to tell me, if it works on Windows.