clay/bindings/jai/examples/modules/raylib-jai
2024-12-22 18:20:51 +01:00
..
wasm Start of clay website example 2024-12-22 18:20:51 +01:00
windows Start of clay website example 2024-12-22 18:20:51 +01:00
.gitignore Start of clay website example 2024-12-22 18:20:51 +01:00
generate.jai Start of clay website example 2024-12-22 18:20:51 +01:00
module.jai Start of clay website example 2024-12-22 18:20:51 +01:00
README.md Start of clay website example 2024-12-22 18:20:51 +01:00
wasm.jai Start of clay website example 2024-12-22 18:20:51 +01:00
windows.jai Start of clay website example 2024-12-22 18:20:51 +01:00

Module by Grouflon.

Raylib Module for Jai

Module and generator script for Raylib. Current version is Raylib 5.1.

How to use

  • Checkout this repository and put it in the modules folder of your project.
  • Include the module with the #import "raylib"; directive.

Example

#import "raylib";

main :: ()
{
    InitWindow(800, 600, "raylib example");
    SetTargetFPS(60);

    while !WindowShouldClose()
    {
        BeginDrawing();

        ClearBackground(RAYWHITE);
	    DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);

	    EndDrawing();
    }

    CloseWindow();
}

Supported Platforms

  • Windows
  • Wasm (Not working yet because of some 32bits/64bits mismatch)

Contributing

Feel free to submit pull requests if you want to add new platforms or any improvement.