Skip to content

Up-to-date, auto-generated Raylib (and Raymath) bindings for V

License

MIT, Unlicense licenses found

Licenses found

MIT
license-mit.txt
Unlicense
license-unlicense.txt
Notifications You must be signed in to change notification settings

EmmaTheMartian/raylib-for-v

Repository files navigation

Raylib for V

Up-to-date, auto-generated Raylib (and Raymath) bindings for V

Current Raylib Target: v5.5

Installation

mkdir -p ~/.vmodules/emmathemartian/ && git clone https://github.com/emmathemartian/raylib-for-v ~/.vmodules/emmathemartian/raylib

If you use v install https://github.com/EmmaTheMartian/raylib-for-v then it will be downloaded to ~/.vmodules/raylib/, meaning it will be imported as just raylib instead of emmathemartian.raylib.

Once VPM is unbugged, I will upload this package there.

Usage

Barring a small handful of differences, it is the exact same as Raylib's C API.

Differences:

  • Functions and parameters are renamed from PascalCase to camel_case
  • Colours are V constants, not as macros
  • Any function that uses or returns a C-string instead uses a V-string

Why?

There are already a handful of V Raylib bindings, but they almost all are out-of-date or are poorly maintained. For that reason, I decided to do it myself.

I also wanted to have documentation comments in the bindings, which is not provided by many Raylib bindings in general as far as I know.

License

Raylib for V is dual-licensed under MIT and the Unlicense. Use whichever works best for you! :D

About

Up-to-date, auto-generated Raylib (and Raymath) bindings for V

Topics

Resources

License

MIT, Unlicense licenses found

Licenses found

MIT
license-mit.txt
Unlicense
license-unlicense.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published