r/AutoHotkey • • 3d ago

v2 Tool / Script Share Raylib AHK - graphics library (GPU)

Hey everyone,

I decided to finish this project I started 3 years ago.

https://github.com/bceenaeiklmr/raylib_ahk

What it is: a generated binding layer over raylib 5.5. lib/raylib.ahk is autogenerated from the official raylib.h, plus a tiny prebuilt DLL for the handful of calls AutoHotkey's DllCall can't express directly. Clone it and run a demo, no compiler, no raylib install, no runtime redist. Just 64-bit AutoHotkey v2.

What you can do with it, all from a script:

- windows, shapes, gradients, images and textures built in RAM (no asset files)

- custom TrueType fonts, so accents and special characters actually render, instead of the built-in font's friendly row of question marks

- 3D: camera, models, textures

- audio, including synthesising a WAV in memory

- and a working little brick game, which is the demo I keep playing instead of finishing things

There are 7 runnable demos in examples/, and the README has screenshots of every one.

raylib is a C library, so if you've used it before the API is the same one you already know, just with RL. on the front. If you haven't, the demos are probably the fastest way in.

Written for Windows x64. Feedback and "this function is missing" reports very welcome, 84 functions are deliberately left out and each one has a written reason, but I could be wrong about a few.

Cheers,
bceen

30 Upvotes

3 comments sorted by

1

u/cedmunds 3d ago

First!!!

Whoa!!! Thank you for finishing, that is insane! It completely changes what Autohotkey can do and be used for, I'm excited to check it out! Will report back if I can :).

1

u/bceen13 3d ago

Appreciate it!

1

u/Own_Willingness5349 3d ago

Excelent 👌👌