Example #1
0
func GetBufferParameteriv(
	target Enum, pname Enum, params *int32) {
	C.glGetBufferParameteriv(
		C.GLenum(target),
		C.GLenum(pname),
		(*C.GLint)(params))
}
Example #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)
}
Example #3
0
func GetBufferParameteri(target, pname Enum) int {
	var params C.GLint
	C.glGetBufferParameteriv(target.c(), pname.c(), &params)
	return int(params)
}
Example #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)
}
Example #5
0
func GetBufferParameteriv(target, pname uint, params []int32) []int32 {
	C.glGetBufferParameteriv(C.GLenum(target), C.GLenum(pname), (*C.GLint)(&params[0]))
	return params
}
Example #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)
}