https://github.com/godunko/adagl
Ada binding for OpenGL/WebGL
https://github.com/godunko/adagl
Last synced: about 1 month ago
JSON representation
Ada binding for OpenGL/WebGL
- Host: GitHub
- URL: https://github.com/godunko/adagl
- Owner: godunko
- License: bsd-3-clause
- Created: 2018-01-18T14:22:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T20:58:57.000Z (about 4 years ago)
- Last Synced: 2024-07-31T20:43:59.799Z (9 months ago)
- Language: Ada
- Size: 126 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ada - adagl - Multiplatform Ada/OpenGL bindings (ported to native/OpenGL, A2JS/WebGL and WASM/WebGL). (Libraries / Graphics and Multimedia)
README
# adagl
[](https://travis-ci.org/godunko/adagl)
[](https://reuse.software/)> Ada binding for OpenGL/WebGL
This project provides a generic interface OpenGL drawing and two
implementation one for native OpenGL library and another for WebGL.
WebGL implementation leverages a2js (an Ada to JavaScript translator)
and Web API binding to launch the code in a browser.## Install
Download sources and build:
```
git clone https://github.com/godunko/adagl.git
cd adagl
make all example
# Run native example
./.objs/x86_64-linux/pyramid
```### Dependencies
It depends on [Matreshka](https://forge.ada-ru.org/matreshka) library
with a2js enabled. Note, to enable a2js you need ASIS installed.WASM/WebGL port depends on [AdaWebPack](https://github.com/godunko/adawebpack).
Native implementation depends on glew and glfw libraries.
### Install dependecies from RPM on Fedora
Just add our repository then install as usual RPM:```
curl -o /etc/yum.repos.d/bintray-reznikmm-matreshka.repo \
https://bintray.com/reznikmm/matreshka/rpm
dnf --assumeyes install --repo bintray--reznikmm-matreshka
dnf --assumeyes install --repo bintray--reznikmm-matreshka matreshka-devel
dnf --assumeyes install --repo bintray--reznikmm-matreshka libgnatutil
dnf --assumeyes install --repo bintray--reznikmm-matreshka asis
dnf --assumeyes install --repo bintray--reznikmm-matreshka matreshka-a2js
dnf --assumeyes install glew-devel
dnf --assumeyes install glfw-devel
```## Maintainer
[@Vadim Godunko](https://github.com/godunko).
## Contribute
Feel free to dive in!
[Open an issue](https://github.com/godunko/adagl/issues/new)
or submit PRs.## License
[BSD](LICENSE) © Vadim Godunko