Raylib bindings for the C3 programming language. (Complete)
- Copy
src/raylib.c3
in ur project - In your file:
- import lib:
import raylib;
- Use the raylib functions:
fn void main() { raylib::init_window(420, 69, "Deez nuts"); }
- import lib:
- Link with raylib lib:
c3c compile -l /usr/lib/libraylib.so my_file.c3 raylib.c3
- Profit!
(TIP: if you want to use a shorter alias, for example rl
just rename the module declaration in raylib.c3 to module rl
, and use it as import rl; ... rl::init_window(...);
in your file.)
- See
src/main.c3
andmakefile
(for building) for an example on how to use the library.
- rcore
- Enumerations (window flags, etc.)
- Macro definitions (colors, etc.)
- Structures (vectors, etc.)
- window functions
- cursor functions
- drawing functions
- vr functions
- shader functions
- screen/space functions
- timing functions
- frame control functions
- random functions
- misc functions
- util functions
- callback functions
- file functions
- filesystem functions
- compression functions
- automation functions
- keyboard functions
- gamepads functions
- mouse functions
- touch functions
- gestures
- camera
- rshapes
- basic shape functions
- spline functions
- spline segment functions
- basic collision functions
- rtextures
- image loading functions
- image generation functions
- image manipulation functions
- image drawing functions
- texture loading functions
- texture configuration functions
- texture drawing functions
- color/pixel related functions
- rtext
- font loading/unloading functions
- text drawing functions
- font info functions
- text codepoint management functions
- text strings management functions
- rmodels
- basic 3d shape functions
- model management functions
- model drawing functions
- mesh management functions
- mesh generation functions
- material loading/unloading functions
- model animations loading/unloading functions
- collision detection functions
- raudio
- audio device management functions
- wave/sound loading/unloading functions
- wave/sound management functions
- music management functions
- audiostream management functions