func Uniform1fv(dst Uniform, src []float32) { defer func() { errstr := errDrain() log.Printf("gl.Uniform1fv(%v, len(%d)) %v", dst, len(src), errstr) }() C.glUniform1fv(dst.c(), C.GLsizei(len(src)), (*C.GLfloat)(&src[0])) }
func Uniform1fv( location int32, count Sizei, v *float32) { C.glUniform1fv( C.GLint(location), C.GLsizei(count), (*C.GLfloat)(v)) }
func Uniform1fv(dst Uniform, src []float32) { C.glUniform1fv(dst.c(), C.GLsizei(len(src)), (*C.GLfloat)(&src[0])) }
func (location UniformLocation) Uniform1fv(count int, v []float32) { if len(v) < 1 { panic("Invalid array length - must be at least 1") } C.glUniform1fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0])) }
func Uniform1fv(location, count int, value []float32) { C.glUniform1fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&value[0])) }
func (u Uniform1f) Setv(data []float32) { C.glUniform1fv(u.location, C.GLsizei(len(data)), (*C.GLfloat)(&data[0])) }
func (location UniformLocation) Uniform1fv(count int, v []float32) { if len(v) < 1 { panic(ErrorInputSize) } C.glUniform1fv(C.GLint(location), C.GLsizei(count), (*C.GLfloat)(&v[0])) }
func (location UniformLocation) Uniform1fv(v []float32) { C.glUniform1fv(C.GLint(location), C.GLsizei(len(v)), (*C.GLfloat)(ptr(v))) }