func GetFloatv(dst []float32, pname Enum) { defer func() { errstr := errDrain() log.Printf("gl.GetFloatv(len(%d), %v) %v", len(dst), pname, errstr) }() C.glGetFloatv(pname.c(), (*C.GLfloat)(&dst[0])) }
// Convenience function for GetFloatv func GetFloat4(pname GLenum) (v0, v1, v2, v3 float32) { var values [4]C.GLfloat C.glGetFloatv(C.GLenum(pname), &values[0]) v0 = float32(values[0]) v1 = float32(values[1]) v2 = float32(values[2]) v3 = float32(values[3]) return }
func GetFloatv(dst []float32, pname Enum) { C.glGetFloatv(pname.c(), (*C.GLfloat)(&dst[0])) }
func GetFloatv( pname Enum, params *float32) { C.glGetFloatv( C.GLenum(pname), (*C.GLfloat)(params)) }
//void glGetFloatv (GLenum pname, float *params) func GetFloatv(pname GLenum, params []float32) { if len(params) == 0 { panic("Invalid params length") } C.glGetFloatv(C.GLenum(pname), (*C.GLfloat)(¶ms[0])) }
func GetFloatv(pname uint, params []float32) []float32 { C.glGetFloatv(C.GLenum(pname), (*C.GLfloat)(¶ms[0])) return params }
//void glGetFloatv (GLenum pname, float *params) func GetFloatv(pname GLenum, params []float32) { if len(params) == 0 { panic(ErrorInputSize) } C.glGetFloatv(C.GLenum(pname), (*C.GLfloat)(¶ms[0])) }