Skip to content

Instantly share code, notes, and snippets.

@MadcapJake
MadcapJake / GLFW.pl6
Last active May 15, 2019 21:54
GLFW/OpenGL with Perl 6
use v6;
use NativeCall;
sub lib { '/usr/lib/x86_64-linux-gnu/libglfw.so.3.1' }
=head1 GLFW/OpenGL in Perl 6
=head2 Bindings
class Window is repr('CPointer') {}
class Monitor is repr('CPointer') {}