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