This document enumerates the WebGL API methods, fields and various other related resources and serves as a "form" for me to fill in in my quest to explore the WebGL API. The idea is that familiarizing myself with each of these, even if briefly at best for most, will improve my overall understanding of the scope and feature set of WebGL and give me the nomenclature and understanding of WebGL required to be able to effectively search for information as I go developing software using WebGL.
This README is fetched and parsed by the accompanying web application which itself probes the WebGL API in the browser for all its members. Headings in this document which match a WebGL member name have their content be displayed in the application.
To run the application either run the file directly in Firefox or use npx serve .
in Chrome or other browsers.
A constant passed to clear
to clear the depth buffer.
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Clearing_buffers
A constant passed to clear
to clear the stencil buffer.
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Clearing_buffers
A constant passed to clear
to clear the color buffer.
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Clearing_buffers
Passed to drawElements
or drawArrays
to draw single points.
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Rendering_primitives
Passed to drawElements
or drawArrays
to draw a polyline.
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Rendering_primitives
Passed to drawElements
or drawArrays
to draw line segments (pairs of vertices).
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Rendering_primitives
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Blending_modes
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Front_face_directions
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Front_face_directions
Because getContext
always returns the same instance which doesn't seem to adjust for dimensions