func VertexAttrib2fv(dst Attrib, src []float32) { defer func() { errstr := errDrain() log.Printf("gl.VertexAttrib2fv(%v, len(%d)) %v", dst, len(src), errstr) }() C.glVertexAttrib2fv(dst.c(), (*C.GLfloat)(&src[0])) }
func VertexAttrib2fv(dst Attrib, src []float32) { C.glVertexAttrib2fv(dst.c(), (*C.GLfloat)(&src[0])) }
func VertexAttrib2fv( indx uint32, values *float32) { C.glVertexAttrib2fv( C.GLuint(indx), (*C.GLfloat)(values)) }
func (indx AttribLocation) Attrib2fv(values []float32) { if len(values) != 2 { panic(ErrorInputSize) } C.glVertexAttrib2fv(C.GLuint(indx), (*C.GLfloat)(&values[0])) }
func VertexAttrib2fv(indx uint, values []float32) { C.glVertexAttrib2fv(C.GLuint(indx), (*C.GLfloat)(&values[0])) }
func (a Vec2Attrib) Setv(values []float32) { C.glVertexAttrib2fv(a.index, (*C.GLfloat)(&values[0])) }
func (indx AttribLocation) Attrib2fv(values *[2]float32) { C.glVertexAttrib2fv(C.GLuint(indx), (*C.GLfloat)(&values[0])) }