go-gl / gl

Go bindings for OpenGL (generated via glow)
MIT License
1.07k stars 74 forks source link

gl.GetAttribLocation and gl.EnableVertexAttribArray types #68

Closed raedatoui closed 7 years ago

raedatoui commented 7 years ago

Why does gl.GetAttribLocation return an int32 for an attribute's location but gl.EnableVertexAttribArray and gl.VertexAttribPointer expect uint32?

dmitshur commented 7 years ago

That's how it is in the OpenGL specification:

glGetAttribLocation - returns GLint. glEnableVertexAttribArray - takes GLuint. glVertexAttribPointer - takes GLuint.