https://github.com/electronstudio/kaylib
Raylib in Kotlin/Native
https://github.com/electronstudio/kaylib
Last synced: 12 months ago
JSON representation
Raylib in Kotlin/Native
- Host: GitHub
- URL: https://github.com/electronstudio/kaylib
- Owner: electronstudio
- Created: 2021-09-21T12:08:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T12:09:49.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T03:14:02.811Z (about 1 year ago)
- Language: Kotlin
- Size: 169 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example of using Raylib in Kotlin Native.
I'm hesitant to call it a binding, because Kotlin Native creates the binding itself.
This just shows you how to set it up. (Copy this project.)
Only tested on Linux, you'd need to change the paths for Windows.
Syntax is not completely pleasant so might be worth doing a wrapper to make it easier to use, but I
don't know how you'd autogenerate that and I don't plan to make one by hand.
Performance is pretty poor.
### Bunnymark
| Library | Implementation | Bunnies (60 FPS) | Percentage |
| ------------- | ------------- | ------------- | ------------- |
| Raylib 3.7 | C | 180000 | 100% |
| Jaylib 3.7 | Java 11 | 39000 | 22% |
| Jaylib 3.7 | Java 11 Avoiding native calls | 64000 | 36% |
| Jaylib 3.7 | Java 17 Avoiding native calls | 73000 | 41% |
| Kaylib 3.7 | Kotlin native | 28000 | 16% |