1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
TextureArray
============
.. py:class:: TextureArray
Returned by :py:meth:`Context.texture_array`
An Array Texture is a Texture where each mipmap level contains an array of images of the same size.
Array textures may have Mipmaps, but each mipmap
in the texture has the same number of levels.
A TextureArray object cannot be instantiated directly, it requires a context.
Use :py:meth:`Context.texture_array` to create one.
Methods
-------
.. py:method:: TextureArray.read
.. py:method:: TextureArray.read_into
.. py:method:: TextureArray.write
.. py:method:: TextureArray.bind_to_image
.. py:method:: TextureArray.build_mipmaps
.. py:method:: TextureArray.use
.. py:method:: TextureArray.release
.. py:method:: TextureArray.get_handle
Attributes
----------
.. py:attribute:: TextureArray.repeat_x
.. py:attribute:: TextureArray.repeat_y
.. py:attribute:: TextureArray.filter
.. py:attribute:: TextureArray.swizzle
.. py:attribute:: TextureArray.anisotropy
.. py:attribute:: TextureArray.width
.. py:attribute:: TextureArray.height
.. py:attribute:: TextureArray.layers
.. py:attribute:: TextureArray.size
.. py:attribute:: TextureArray.dtype
.. py:attribute:: TextureArray.components
.. py:attribute:: TextureArray.ctx
:type: Context
The context this object belongs to
.. py:attribute:: TextureArray.glo
:type: int
The internal OpenGL object.
This values is provided for interoperability and debug purposes only.
.. py:attribute:: TextureArray.extra
:type: Any
User defined data.
|