Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haxiomic/gluon
WebGL implementation for hxcpp
https://github.com/haxiomic/gluon
Last synced: 23 days ago
JSON representation
WebGL implementation for hxcpp
- Host: GitHub
- URL: https://github.com/haxiomic/gluon
- Owner: haxiomic
- License: mit
- Created: 2016-07-31T00:26:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-06-07T16:50:06.000Z (over 3 years ago)
- Last Synced: 2024-04-17T21:42:56.590Z (7 months ago)
- Language: C
- Homepage:
- Size: 4.73 MB
- Stars: 24
- Watchers: 8
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gluon
- WebGL implementation for **js** and **cpp** targets with additional typing for better integration with haxe
- Abstract enums are used to type constants, for example:
`enable(cap:GLenum)`
becomes
`enable(cap:Capability)`
and the compiler can autocomplete valid constants.Which means fewer trips to the OpenGL specification :)
- Includes a TypedArray implementation designed for parity with JavaScript's TypedArrays
- GPU resources are freed with garbage collection however best practice is to still do this manually with the gl.delete* methods because both hxcpp and browser garbage collectors [cannot properly estimate memory pressure of GPU objects](https://stackoverflow.com/a/31250301/4038621)### Examples
See [EXAMPLES.md](EXAMPLES.md)### Design Goals
- Dependency free and minimalistic