예제 #1
0
func MaxTextureSize3D() gl.Int {
	if maxTexSize3D == 0 {
		gl.GetIntegerv(gl.MAX_3D_TEXTURE_SIZE, &maxTexSize3D)
		PanicIfErrors("MaxTextureSize3D()")
	}
	return maxTexSize3D
}
예제 #2
0
func MaxTextureBufferSize() uint64 {
	if maxTexBufSize == 0 {
		gl.GetIntegerv(gl.MAX_TEXTURE_BUFFER_SIZE, &maxTexBufSize)
		PanicIfErrors("MaxTextureBufferSize()")
	}
	return uint64(maxTexBufSize)
}
예제 #3
0
func Integervs(name gl.Enum, num uint) []gl.Int {
	var ret = make([]gl.Int, num)
	gl.GetIntegerv(name, &ret[0])
	PanicIfErrors("Integervs(n=%v)", name)
	return ret
}
예제 #4
0
func Integerv(name gl.Enum) gl.Int {
	var ret gl.Int
	gl.GetIntegerv(name, &ret)
	PanicIfErrors("Integerv(n=%v)", name)
	return ret
}