func GetTexParameteriv( target Enum, pname Enum, params *int32) { C.glGetTexParameteriv( C.GLenum(target), C.GLenum(pname), (*C.GLint)(params)) }
func GetTexParameteriv(dst []int32, target, pname Enum) { defer func() { errstr := errDrain() log.Printf("gl.GetTexParameteriv(%v, %v, %v) %v", dst, target, pname, errstr) }() C.glGetTexParameteriv(target.c(), pname.c(), (*C.GLint)(&dst[0])) }
func GetTexParameteriv(dst []int32, target, pname Enum) { C.glGetTexParameteriv(target.c(), pname.c(), (*C.GLint)(&dst[0])) }
//void glGetTexParameteriv (GLenum target, GLenum pname, int *params) func GetTexParameteriv(target GLenum, pname GLenum, params []int32) { if len(params) == 0 { panic(ErrorInputSize) } C.glGetTexParameteriv(C.GLenum(target), C.GLenum(pname), (*C.GLint)(¶ms[0])) }
//void glGetTexParameteriv (GLenum target, GLenum pname, int *params) func GetTexParameteriv(target GLenum, pname GLenum, params []int32) { if len(params) == 0 { panic("Invalid params slice length") } C.glGetTexParameteriv(C.GLenum(target), C.GLenum(pname), (*C.GLint)(¶ms[0])) }
func GetTexParameteri(target TextureTarget, pname TextureParameter) int { param := C.GLint(0) C.glGetTexParameteriv(C.GLenum(target), C.GLenum(pname), ¶m) return int(param) }
func GetTexParameteriv(target, pname uint, params []int32) []int32 { C.glGetTexParameteriv(C.GLenum(target), C.GLenum(pname), (*C.GLint)(¶ms[0])) return params }