RawGl is an Ultra Simple WebGl2 frameWork designed to hide as much of webGl boiler plate as possible and yet keep it low level.
It can be said that the one main objective of WebGl is to draw triangles on the screen. For this purpose this version provides 3 components to draw triangles and hence any shape on the canvas.These components are "BaseTri", "Tri" and "TriCont". Each of these components has their own qualities.
We will not get far if we start building every thing triangle by triangle. Thus we need some basic primtives that we can quickly add and use.
Once we have drawn some shapes on the screen we will like them to be grouped so that we can collectively move them and change their width and height. This is achieved by "TriCont" components.
Once we have created shapes we will like to bundle them into "Assets" for later use.
We will also need a way to change these stored assets a little bit the next time we want to use a previously stored asset. This is achieved by the "Asset Builder" object.
Overview of the RawGl framework components.
There are some demo assets created for explanation.
How to create you own Assets
Base Component for other Components
Tri Component draw on entire screen unlike "TriCont" component.
The low level collection of WebGl functions.
---2022-Noc-08 (version 0.0.1)