cray
cray
Complete RayLib bindings to Crystal.
Installation
Add this to your application's shard.yml
:
dependencies:
cray:
gitlab: zatherz/cray
Usage
Check out the examples in the examples
directory.
You can run make run_examples
to run all of the examples one after another.
The function names are the same as the names in the cheatsheet, with the following differences:
- All of the functions, structs and constants are prefixed with
LibRay
.
IsWindowMinimized
=>LibRay.window_minimized?
Vector2
=>LibRay::Vector2
FLAG_WINDOW_RESIZABLE
=>LibRay::FLAG_WINDOW_RESIZABLE
- PascalCase is changed into snake_case (so for example
InitWindow
isinit_window
). - Functions returning booleans end with a question mark and the
Is
prefixes are stripped.
For example,IsWindowMinimized
iswindow_minimized?
- Any other name inconsistency is a bug.
Contributors
- [Zatherz] Zatherz - creator, maintainer
Repository
cray
Owner
Statistic
- 7
- 4
- 1
- 10
- 0
- over 5 years ago
- October 26, 2017
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 02:35:38 GMT
Languages