Skip to content

Bindings for for Vala to use the simple and easy to use graphics library Raylib.

License

Notifications You must be signed in to change notification settings

Charadon/raylib-vapi

 
 

Repository files navigation

Raylib VAPI

Bindings for Vala to use the simple and easy to use graphics library Raylib.

Description

Ralib VAPI currently supports the core module of Raylib using a C style API for ease of code porting.

Some VAPI's will be released to follow a more OOP design as well if you wish to use them in a more traditional Vala style.

Supported Modules

Module Supported OOP Available VAPI Name Version
raylib ✔️ 🚧 raylib.vapi 4.5
rlgl ✔️ rlgl.vapi 4.5
raymath
raudio
raygui
rpng
rini ✔️ rini.vapi 1.0
res
physac 🚧 physac.vapi 1.1

Example

using Raylib;

public const int WINDOW_WIDTH = 800;
public const int WINDOW_HEIGHT = 450;

public static int main (string[] args) {
    init_window (WINDOW_WIDTH, WINDOW_HEIGHT, "raylib [core] example - basic window");

    set_target_fps (60);

    while (!window_should_close ()) {
        begin_drawing ();
            clear_background (RAYWHITE);

            draw_text ("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
        end_drawing ();
    }

    close_window ();

    return 0;
}

Compiling Included Examples

cd examples

meson build -C build

cd build/

Camera3D/application        # To run the 3D camera example
                            # or
SmoothPixel/application     # To run the smooth pixel perfect example

About

Bindings for for Vala to use the simple and easy to use graphics library Raylib.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vala 94.5%
  • Meson 3.5%
  • C 2.0%