(bind-float-vertex-attribute) ( program-instance ptr name dim gl-type normalize? stride offset -- )


Vocabulary
gpu.shaders.private

Inputs
program-instancean object
ptran object
namean object
diman object
gl-typean object
normalize?an object
stridean object
offsetan object


Outputs
None

Definition


:: (bind-float-vertex-attribute)
( program-instance ptr name dim gl-type normalize? stride offset -- )
program-instance name attribute-index :> idx idx 0 >= [
idx glEnableVertexAttribArray
idx dim gl-type normalize? stride offset ptr
<displaced-alien> glVertexAttribPointer
] when ; inline