lib_glut
Version, currently master branch1 version
- master branchlatestSep 5, 2018
github.com/da1nerd/lib_glut
Freeglut bindings for Crystal
Installation
# Add this to your shard.yml
dependencies:
lib_glut:
github: da1nerd/lib_glut
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.26.0- License
- MIT
- Author
- Joel Lonbeck
Dependencies
This version declares no dependencies.
README
LibGLUT
LibGLUT offers Crystal bindings for Freeglut.
A few adjustments have been made to nomenclature to follow the Crystal style guide and improve readability:
- the
glutprefix has been removed from all functions and constants. - method names are snake_case rather than camelCase.
Installation
Add this to your application's shard.yml:
dependencies:
lib_glut:
github: neutrinog/lib_glut
You must also install cmake, freeglut, and opengl.
Usage
require "lib_glut"
TODO: Write usage instructions here
Extensions
Since freeglut does not currently support passing context to callback functions I've included some additional methods that add this feature.
All extensions are named after their corresponding function with an _x appended.
For example:
LibGLUT.display_func # standard freeglut method
LibGLUT.display_func_x # extended function with support for passing in a context.
The ability to pass context to a c function means we can preserve closure while calling these methods.
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/neutrinog/lib_glut/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- neutrinog Joel Lonbeck - 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 5, 2018
- Crystal
0.26.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/da1nerd/lib_glut
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1