picogl.backend.gl.wrappers.texture
OpenGL texture upload wrappers (2D and 3D).
Functions
|
Issue |
|
Select texture unit 0. |
|
Issue |
|
Issue |
|
Issue |
|
Issue |
|
Issue |
|
Issue |
|
Generate mipmaps for the currently bound texture. |
Module Contents
- picogl.backend.gl.wrappers.texture.gl_active_texture(unit: int) None[source]
Issue
glActiveTexture.
- picogl.backend.gl.wrappers.texture.gl_gen_textures(number: int = 1) Any[source]
Issue
glGenTextures.
- picogl.backend.gl.wrappers.texture.gl_bind_texture(tex_id: int, target: int = GL_TEXTURE_2D) None[source]
Issue
glBindTexture.
- picogl.backend.gl.wrappers.texture.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[source]
Issue
glCompressedTexImage2Dfor a 2D texture.
- picogl.backend.gl.wrappers.texture.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[source]
Issue
glTexImage2D.
- picogl.backend.gl.wrappers.texture.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[source]
Issue
glTexImage3D.