func (program *Program) BindAttribLocation(attrib VertexAttrib, name string) { cstr := C.CString(name) defer C.free(unsafe.Pointer(cstr)) C.glBindAttribLocation(program.id, attrib.Index(), (*C.GLchar)(cstr)) }
func (program Program) BindAttribLocation(index AttribLocation, name string) { cname := glString(name) defer freeString(cname) C.glBindAttribLocation(C.GLuint(program), C.GLuint(index), cname) }
func BindAttribLocation( program uint32, index uint32, name string) { s := glString(name) C.glBindAttribLocation( C.GLuint(program), C.GLuint(index), s) }
func BindAttribLocation(p Program, a Attrib, name string) { defer func() { errstr := errDrain() log.Printf("gl.BindAttribLocation(%v, %v, %v) %v", p, a, name, errstr) }() str := unsafe.Pointer(C.CString(name)) defer C.free(str) C.glBindAttribLocation(p.c(), a.c(), (*C.GLchar)(str)) }
func BindAttribLocation(p Program, a Attrib, name string) { str := unsafe.Pointer(C.CString(name)) defer C.free(str) C.glBindAttribLocation(p.c(), a.c(), (*C.GLchar)(str)) }
func BindAttribLocation(program, index uint, name string) { C.glBindAttribLocation(C.GLuint(program), C.GLuint(index), CString(name)) }