more work on binding WebGL

This commit is contained in:
David Botton 2022-08-10 22:34:29 -04:00
parent 0a3cec7c41
commit 5ac17aaaea
2 changed files with 605 additions and 78 deletions

View file

@ -47,6 +47,8 @@ void main() {
(pos (attribute-location program "a_position"))
(pos-buffer (create-webgl-buffer gl))
(vao (create-vertex-array gl)))
(print (drawing-buffer-width gl))
(print (drawing-buffer-height gl))
(bind-buffer pos-buffer :ARRAY_BUFFER)
(buffer-data pos-buffer `(0 0
0 0.5