Exemplo n.º 1
0
func GetBufferParameteriv(
	target Enum, pname Enum, params *int32) {
	C.glGetBufferParameteriv(
		C.GLenum(target),
		C.GLenum(pname),
		(*C.GLint)(params))
}
Exemplo n.º 2
0
func GetBufferParameteri(target, pname Enum) (r0 int) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GetBufferParameteri(%v, %v) %v%v", target, pname, r0, errstr)
	}()
	var params C.GLint
	C.glGetBufferParameteriv(target.c(), pname.c(), &params)
	return int(params)
}
Exemplo n.º 3
0
func GetBufferParameteri(target, pname Enum) int {
	var params C.GLint
	C.glGetBufferParameteriv(target.c(), pname.c(), &params)
	return int(params)
}
Exemplo n.º 4
0
func GetBufferParameter(target BufferTarget, param BufferParameter) int {
	value := C.GLint(0)
	C.glGetBufferParameteriv(C.GLenum(target), C.GLenum(param), &value)
	return int(value)
}
Exemplo n.º 5
0
func GetBufferParameteriv(target, pname uint, params []int32) []int32 {
	C.glGetBufferParameteriv(C.GLenum(target), C.GLenum(pname), (*C.GLint)(&params[0]))
	return params
}
Exemplo n.º 6
0
// Return parameters of a buffer object
func GetBufferParameteriv(target GLenum, pname GLenum) int32 {
	var param C.GLint
	C.glGetBufferParameteriv(C.GLenum(target), C.GLenum(pname), &param)
	return int32(param)
}