cray
Version, currently master branch1 version
- master branchlatestSep 13, 2018
gitlab.com/TeddyDD/cray
Complete bindings to Raylib for Crystal. Raylib is an extremely simple library for graphics, input, image manipulation and audio.
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cray:
gitlab: TeddyDD/cray
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Zatherz
Dependencies
This version declares no dependencies.
README
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
InitWindowisinit_window). - Functions returning booleans end with a question mark and the
Isprefixes are stripped.
For example,IsWindowMinimizediswindow_minimized? - Any other name inconsistency is a bug.
Contributors
- [Zatherz] Zatherz - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 13, 2018
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
gitlab.com/TeddyDD/cray
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1