Re:OpenGL API Documentation
by dietrichepp on Friday June 19, 2015 @08:35AM
(#9744253)
WebGL has some differences from OpenGL ES, but the functions mostly have the same functionality. For example, instead of passing a pointer to glTexImage2D(), you can pass a typed array or an image element from the HTML DOM. Objects such as textures are also passed to the API as opaque objects rather than integer indexes.
https://www.khronos.org/webgl/
"WebGL: OpenGL ES 2.0 for the Web"
There are some minor differences beyond types. For example, getShaderParameter is WebGL only.
Simple. Was expected something more complicated, I could have looked further before asking ^^.
Anyway, thanks!
Hello, dev of docs.gl here. I would be happy to support WebGL but I don't use it myself so I've not prioritized adding it. I'm happy to work with any enterprising person who wants to help add it :)
Re:OpenGL API Documentation
by TazeTSchnitzel on Friday June 19, 2015 @07:45AM
(#9744084)
WebGL is based on OpenGL ES, so look at the es2 column.
Now, that makes probably no sense; can someone clarify what these versions mean (apart from API availability described by this table, obviously), and if there's a relationship to the WebGL subset (it is a subset, right?).