Skip to content

API Reference / @gtkx/gl / getAttribLocation

Function: getAttribLocation()

getAttribLocation(program, name): number

Defined in: generated/commands.d.ts:2428

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

Released under the MPL-2.0 License.