picogl.backend.gl.wrappers.texture ================================== .. py:module:: picogl.backend.gl.wrappers.texture .. autoapi-nested-parse:: OpenGL texture upload wrappers (2D and 3D). Functions --------- .. autoapisummary:: picogl.backend.gl.wrappers.texture.gl_active_texture picogl.backend.gl.wrappers.texture.gl_get_active_texture0 picogl.backend.gl.wrappers.texture.gl_gen_textures picogl.backend.gl.wrappers.texture.gl_bind_texture picogl.backend.gl.wrappers.texture.gl_compressed_tex_image picogl.backend.gl.wrappers.texture.gl_teximage2d picogl.backend.gl.wrappers.texture.gl_teximage3d picogl.backend.gl.wrappers.texture.gl_tex_parameter picogl.backend.gl.wrappers.texture.gl_generate_mipmap Module Contents --------------- .. py:function:: gl_active_texture(unit: int) -> None Issue ``glActiveTexture``. .. py:function:: gl_get_active_texture0() -> None Select texture unit 0. .. py:function:: gl_gen_textures(number: int = 1) -> Any Issue ``glGenTextures``. .. py:function:: gl_bind_texture(tex_id: int, target: int = GL_TEXTURE_2D) -> None Issue ``glBindTexture``. .. py:function:: gl_compressed_tex_image(byte_array: array.array[int], gl_format: OpenGL.constant.FloatConstant | OpenGL.constant.IntConstant | OpenGL.constant.LongConstant | OpenGL.constant.StringConstant | OpenGL.constant.Constant, h: int, level: int, size: int, w: int) -> None Issue ``glCompressedTexImage2D`` for a 2D texture. .. py:function:: gl_teximage2d(target: int, level: int, internalformat: OpenGL.constant.FloatConstant | OpenGL.constant.IntConstant | OpenGL.constant.LongConstant | OpenGL.constant.StringConstant | OpenGL.constant.Constant, width: int, height: int, border: int, format: OpenGL.constant.FloatConstant | OpenGL.constant.IntConstant | OpenGL.constant.LongConstant | OpenGL.constant.StringConstant | OpenGL.constant.Constant, num_type: int = GLNumeric.UNSIGNED_BYTE, data: bytes | numpy.ndarray | None = None) -> None Issue ``glTexImage2D``. .. py:function:: gl_teximage3d(target: int, level: int, internalformat: OpenGL.constant.FloatConstant | OpenGL.constant.IntConstant | OpenGL.constant.LongConstant | OpenGL.constant.StringConstant | OpenGL.constant.Constant, width: int, height: int, depth: int, border: int, format: OpenGL.constant.FloatConstant | OpenGL.constant.IntConstant | OpenGL.constant.LongConstant | OpenGL.constant.StringConstant | OpenGL.constant.Constant, num_type: int, data: bytes | numpy.ndarray | None = None) -> None Issue ``glTexImage3D``. .. py:function:: gl_tex_parameter(target: int, pname: Any, param: Any) -> None Issue ``glTexParameteri``. .. py:function:: gl_generate_mipmap(target: int = GL_TEXTURE_2D) -> None Generate mipmaps for the currently bound texture.