mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
More work on webgl
This commit is contained in:
parent
5b162c7cd2
commit
2ac40e7603
2 changed files with 91 additions and 0 deletions
|
|
@ -47,6 +47,10 @@ void main() {
|
|||
(pos (attribute-location program "a_position"))
|
||||
(pos-buffer (create-webgl-buffer gl))
|
||||
(vao (create-vertex-array gl)))
|
||||
(dotimes (n (parse-integer (program-parameter program :ACTIVE_ATTRIBUTES)))
|
||||
(let ((obj (active-attribute program n)))
|
||||
(format t "~A : Active Attribute - ~A ~A ~A"
|
||||
n (info-name obj) (info-size obj) (info-type obj))))
|
||||
(print (drawing-buffer-width gl))
|
||||
(print (drawing-buffer-height gl))
|
||||
(bind-buffer pos-buffer :ARRAY_BUFFER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue