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.
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
It depends on Matreshka library with a2js enabled. Note, to enable a2js you need ASIS installed.
WASM/WebGL port depends on AdaWebPack.
Native implementation depends on glew and glfw libraries.
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
Feel free to dive in! Open an issue or submit PRs.
BSD © Vadim Godunko