Some basic Erlang nif bindings for OpenGL maths library
License
wot123/erlglm
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Building: rebar compile Example usage: 1> erlglm:mat4(). {1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0, 0.0,1.0} 1> erlglm:lookat({0.0,10.0,10.0}, {0.0,0.0,0.0}, {0.0,1.0,0.0}). {1.0,0.0,0.0,0.0,0.0,0.7071067811865475,0.7071067811865475, 0.0,0.0,-0.7071067811865475,0.7071067811865475,0.0,0.0,0.0, -14.14213562373095,1.0} 1> erlglm:perspective(45.0, 4.0/3.0, 0.1, 100.0). {1.344443240189478,0.0,0.0,0.0,0.0,1.792590986919304,0.0, 0.0,0.0,0.0,-1.002002002002002,-1.0,0.0,0.0, -0.20020020020020018,0.0} 1> erlglm:translate(10.0,0.0,0.0). {1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,10.0,0.0, 0.0,1.0} 1> erlglm:rotate(erlglm:translate(10.0, 0.0, 0.0), 12.5, {0.0,1.0,0.0}). {0.9977982791785807,0.0,0.06632189735120068,0.0,0.0,1.0,0.0, 0.0,-0.06632189735120068,0.0,0.9977982791785807,0.0,10.0, 0.0,0.0,1.0}
About
Some basic Erlang nif bindings for OpenGL maths library
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published