func MaxTextureSize3D() gl.Int { if maxTexSize3D == 0 { gl.GetIntegerv(gl.MAX_3D_TEXTURE_SIZE, &maxTexSize3D) PanicIfErrors("MaxTextureSize3D()") } return maxTexSize3D }
func MaxTextureBufferSize() uint64 { if maxTexBufSize == 0 { gl.GetIntegerv(gl.MAX_TEXTURE_BUFFER_SIZE, &maxTexBufSize) PanicIfErrors("MaxTextureBufferSize()") } return uint64(maxTexBufSize) }
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 }
func Integerv(name gl.Enum) gl.Int { var ret gl.Int gl.GetIntegerv(name, &ret) PanicIfErrors("Integerv(n=%v)", name) return ret }