Skip to content

API Reference / @gtkx/gl / getAttribLocation

Function: getAttribLocation() ​

getAttribLocation(program, name): number

Defined in: packages/gl/src/generated/commands.ts:3062

GLint glGetAttribLocation(GLuint program, const GLchar *name)

Provided by GL_VERSION_2_0. Also known as glGetAttribLocationARB.

Parameters ​

program ​

number

GLuint, object class program

name ​

string

string

Returns ​

number

GLint