示例#1
0
文件: gl.go 项目: micia/gl
// Convenience function for GetDoublev
func GetDouble4(pname GLenum) (v0, v1, v2, v3 float64) {
	var values [4]C.GLdouble
	C.glGetDoublev(C.GLenum(pname), &values[0])
	v0 = float64(values[0])
	v1 = float64(values[1])
	v2 = float64(values[2])
	v3 = float64(values[3])
	return
}
示例#2
0
文件: gl.go 项目: james4k/gl
//void glGetDoublev (GLenum pname, float64 *params)
func GetDoublev(pname GLenum, params []float64) {
	if len(params) == 0 {
		panic("Invalid params length")
	}
	C.glGetDoublev(C.GLenum(pname), (*C.GLdouble)(&params[0]))
}
示例#3
0
文件: gl.go 项目: Nvveen/gl
//void glGetDoublev (GLenum pname, float64 *params)
func GetDoublev(pname GLenum, params []float64) {
	if len(params) == 0 {
		panic(ErrorInputSize)
	}
	C.glGetDoublev(C.GLenum(pname), (*C.GLdouble)(&params[0]))
}