Ada bindings for Raylib 5.1 library.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ognjen Milan Robovic ad15946d12 Update to generation... il y a 2 semaines
example Update to generation... il y a 2 semaines
.gitignore Generation example and rescaling... il y a 2 semaines
LICENSE Initial commit il y a 1 mois
README.md README and window,,, il y a 2 semaines
compile.sh Generation example and rescaling... il y a 2 semaines
install.sh Explaining examples and utter install script cancer... il y a 2 semaines
raylib.ads Explaining examples and utter install script cancer... il y a 2 semaines

README.md

raylib-ada

Ada bindings for Raylib 5.1 library, written and configured manually for the most part.

Important note for users:

  • Currently, bindings are stable and finished, but being tested. When I test them, this notice will be removed.
  • If you want to start writing an Ada program using these bindings, it's better to wait when testing is done!
  • Variadic functions and function pointers were completely removed due to “language barrier”...
  • Some function names and function arguments were renamed to follow pedantic naming style and Ada conventions.
  • If you “Init” something, you “Deinit” it later, if you “Close” something, that means you “Opened” it...
  • Also, if you “Alloc(ated)” something, you have to “Dealloc(ate) it later, not “Free” it, you didn't “Imprison” it.
  • Sorry...
  • There are examples, you can compile and run them, this is all still being tested...
  • First of all, run ‘sudo sh install.sh’, then ‘sh compile.sh’ and see the results with ‘ls’ command. Thanks.
  • All files in ‘./example/resource/’ folder are under CC0 license, downloaded from opengameart.org.

Compile:

$ sh compile.sh

Install:

$ sudo sh install.sh
with Raylib;
use  Raylib;

procedure Window is
begin
	Open_Window (720, 360, "Heyo Raylib!" & ASCII.NUL);
	--
	Main_Loop: loop
		exit when Window_Should_Close;
		--
		Begin_Drawing;
		Clear_Background (Blue);
		End_Drawing;
	end loop Main_Loop;
	--
	Close_Window;
end Window;