https://github.com/doughsay/crystal-cube
A rotating colorful cube in Crystal + OpenGL using GLFW for windowing
https://github.com/doughsay/crystal-cube
crystal crystal-opengl glfw3 glsl opengl
Last synced: 12 months ago
JSON representation
A rotating colorful cube in Crystal + OpenGL using GLFW for windowing
- Host: GitHub
- URL: https://github.com/doughsay/crystal-cube
- Owner: doughsay
- Created: 2017-07-06T03:19:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-23T19:54:36.000Z (over 8 years ago)
- Last Synced: 2025-03-23T20:36:36.412Z (about 1 year ago)
- Topics: crystal, crystal-opengl, glfw3, glsl, opengl
- Language: Crystal
- Size: 168 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Crystal OpenGL Rotating Cube
============================
A rotating colorful cube in Crystal.
Dependencies
------------
1. A working Crystal instalation (`brew install crystal-lang`)
2. GLFW3 (`brew install glfw3`)
How To Run
----------
```
# install dependencies
shards
# run
crystal src/main.cr
# or build
crystal build src/main.cr -o cube
./cube
```
`esc` in the window, or `ctrl-c` in the terminal to quit.
Screenshot
----------
