type t
Type of a 2D texture array
This module provides an abstraction of OpenGL 2D texture arrays
type t
val create : (module RenderTarget.T with type t = 'a) -> 'a -> ?mipmaps:[ `AllEmpty | `Empty of int | `AllGenerated | `Generated of int | `None] -> [< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] list -> t
Texture_error
if the requested size exceeds the maximal texture size allowed by the context.Texture_error
if the list of layers is empty, or if all the layers do not have the same dimensions.
val size : t -> OgamlMath.Vector3i.t
val minify : t -> MinifyFilter.t -> unit
val magnify : t -> MagnifyFilter.t -> unit
val wrap : t -> WrapFunction.t -> unit
val layers : t -> int
(size tex).z
val mipmap_levels : t -> int
val layer : t -> int -> Texture2DArrayLayer.t
Invalid_argument
if the layer does not exist.
val mipmap : t -> int -> Texture2DArrayMipmap.t
Invalid_argument
if the mipmap level does not exist.