glesv2 :: GLProgram :: attrib_location
name
Returns -1
if there is no active attribute named name
.
# Get the location of the attribute by `name`
#
# Returns `-1` if there is no active attribute named `name`.
fun attrib_location(name: String): Int import String.to_cstring `{
GLchar *c_name = String_to_cstring(name);
return glGetAttribLocation(self, c_name);
`}
lib/glesv2/glesv2.nit:64,2--70,3