def border_color(self): if self.dtype.is_float(): _border_color = (_gl.GLfloat * 4)() with self: _gl.glGetTexParameterfv(self._target, _gl.GL_TEXTURE_BORDER_COLOR, _border_color) elif self.dtype.is_signed(): _border_color = (_gl.GLint * 4)() with self: _gl.glGetTexParameterIiv(self._target, _gl.GL_TEXTURE_BORDER_COLOR, _border_color) else: _border_color = (_gl.GLuint * 4)() with self: _gl.glGetTexParameterIuiv(self._target, _gl.GL_TEXTURE_BORDER_COLOR, _border_color) return [_border_color[i] for i in range(4)]
def max_level(self): _max_level = _gl.GLint() with self: _gl.glGetTexParameterIiv(self._target, _gl.GL_TEXTURE_MAX_LEVEL, _gl.pointer(_max_level)) return _max_level.value
def max_lod(self): _max_lod = _gl.GLint() with self: _gl.glGetTexParameterIiv(self._target, _gl.GL_TEXTURE_MAX_LOD, _gl.pointer(_max_lod)) return _max_lod.value
def base_level(self): _base_level = _gl.GLint() with self: _gl.glGetTexParameterIiv(self._target, _gl.GL_TEXTURE_BASE_LEVEL, _gl.pointer(_base_level)) return _base_level.value