raylib 0.1.0 copy "raylib: ^0.1.0" to clipboard
raylib: ^0.1.0 copied to clipboard

outdated

raylib is a simple and easy-to-use library to enjoy videogames programming.

Raylib #

plugin version coverage report pipeline status dependencies

Dart bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.

Usage #

Add raylib as a dependency to your pubspec.yaml file (what?).

Importing raylib:

import 'package:raylib/raylib.dart';

By default the package will look for the raylib library in <PROJECT_ROOT>/include using the following file conventions:

  • libraylib.so for Linux and MacOS.

If your lib files are somewhere else or follow a different naming convention you can specify that in your pubspec.yaml:

raylib:
  platform: 
    linux: include/libraylib.so
    macos: include/libraylib.so

Development #

Linux #

You need to have make and git installed:

sudo apt install build-essential git

After that you can check out the submodules:

git submodule update --init --recursive

After you have downloaded the submodules you can compile raylib:

cd vendor/raylib/src
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
cp ../libraylib.so.4.0.0 ../../../example/include/libraylib.so
25
likes
0
pub points
26%
popularity

Publisher

verified publisherwolfenra.in

raylib is a simple and easy-to-use library to enjoy videogames programming.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

ffi, yaml

More

Packages that depend on raylib