func GetTexParameterfv( target Enum, pname Enum, params *float32) { C.glGetTexParameterfv( C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(params)) }
func GetTexParameterfv(dst []float32, target, pname Enum) { defer func() { errstr := errDrain() log.Printf("gl.GetTexParameterfv(len(%d), %v, %v) %v", len(dst), target, pname, errstr) }() C.glGetTexParameterfv(target.c(), pname.c(), (*C.GLfloat)(&dst[0])) }
func GetTexParameterfv(dst []float32, target, pname Enum) { C.glGetTexParameterfv(target.c(), pname.c(), (*C.GLfloat)(&dst[0])) }
//void glGetTexParameterfv (GLenum target, GLenum pname, float *params) func GetTexParameterfv(target GLenum, pname GLenum, params []float32) { if len(params) == 0 { panic(ErrorInputSize) } C.glGetTexParameterfv(C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(¶ms[0])) }
//void glGetTexParameterfv (GLenum target, GLenum pname, float *params) func GetTexParameterfv(target GLenum, pname GLenum, params []float32) { if len(params) == 0 { panic("Invalid params slice length") } C.glGetTexParameterfv(C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(¶ms[0])) }
func GetTexParameterf(target TextureTarget, pname TextureParameter) float32 { param := float32(0) C.glGetTexParameterfv(C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(¶m)) return param }
func GetTexParameterfv(target, pname uint, params []float32) []float32 { C.glGetTexParameterfv(C.GLenum(target), C.GLenum(pname), (*C.GLfloat)(¶ms[0])) return params }