Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.26 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.26 KB

raylib.el

raylib.el is a dynamic module for raylib

Warning

The project is in a very early stage! Please don't expect anything to work reliably or at all just yet.

Caution

It can crash your Emacs!

Installation

Ensure you have raylib installed, for example in Arch you can do pacman -S raylib.

Clone the repo and run make, which should build raylib.el.so dynamic module.

cd ~/.emacs.d
git clone https://github.com/TatriX/raylib.el raylib
cd raylib
make

Usage

(use-package raylib
    :load-path ~/.emacs.d/raylib)

Now you can try running the examples:

(find-file "~/.emacs.d/raylib/examples/core/core-basic-window.el")
(eval-buffer)

Debugging

When an error occurs in the main loop managed by rl-run-mainloop it is caught and reported as raylib caught error: .... Main loop will continue running and generating the same error, because we don't want to interrupt your flow in case you just made a typo.

You may also want to stop the main loop and run your function manually, potentially using edebug to step it through:

(rl-stop-mainloop)
(my-mainloop rl-dt)