attribute-index ( program-instance attribute-name -- index ) (original) (raw)
attribute-index ( program-instance attribute-name -- index )
Inputs
program-instance | a program-instance |
---|---|
attribute-name | a string |
Outputs
index | an integer |
---|
Word description
Returns the numeric index of the vertex attribute named attribute-name in program-instance.
Definition
USING: accessors kernel opengl.gl ;
MEMO: attribute-index
( program-instance attribute-name -- index )
[ handle>> ] dip glGetAttribLocation ;