Ada bindings for Raylib 5.1 library.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 місяці тому
3 тижднів тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # raylib-ada
  2. Ada bindings for Raylib 5.1 library, written and configured manually for the most part.
  3. Important note for users:
  4. - Currently, bindings are stable and finished, but being tested. When I test them, this notice will be removed.
  5. - If you want to start writing an Ada program using these bindings, it's better to wait when testing is done!
  6. - Variadic functions and function pointers were completely removed due to "language barrier"...
  7. - Some function names and function arguments were renamed to follow pedantic naming style and Ada conventions.
  8. - If you "Init" something, you "Deinit" it later, if you "Close" something, that means you "Opened" it...
  9. - Also, if you "Alloc(ated)" something, you have to "Dealloc(ate) it later, not "Free" it, you didn't "Imprison" it.
  10. - Sorry...
  11. - There are examples, you can compile and run them, this is all still being tested...
  12. - First of all, run 'sudo sh install.sh', then 'sh compile.sh' and see the results with 'ls' command. Thanks.
  13. - All files in './example/resource/' folder are under CC0 license, downloaded from opengameart.org.
  14. Compile:
  15. ```bash
  16. $ sh compile.sh
  17. ```
  18. Install:
  19. ```bash
  20. $ sudo sh install.sh
  21. ```
  22. ```ada
  23. with Raylib;
  24. use Raylib;
  25. procedure Window is
  26. begin
  27. Open_Window (720, 360, "Heyo Raylib!" & ASCII.NUL);
  28. --
  29. Main_Loop: loop
  30. exit when Window_Should_Close;
  31. --
  32. Begin_Drawing;
  33. Clear_Background (Blue);
  34. End_Drawing;
  35. end loop Main_Loop;
  36. --
  37. Close_Window;
  38. end Window;
  39. ```