mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
more work on binding WebGL
This commit is contained in:
parent
0a3cec7c41
commit
5ac17aaaea
2 changed files with 605 additions and 78 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue