type t
Cubemap texture
This module provides an abstraction of OpenGL's cubemap textures
type t
val create : (module RenderTarget.T with type t = 'a) -> 'a -> ?mipmaps:[ `AllEmpty | `Empty of int | `AllGenerated | `Generated of int | `None] -> positive_x:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> positive_y:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> positive_z:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> negative_x:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> negative_y:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> negative_z:[< `File of string | `Image of Image.t | `Empty of OgamlMath.Vector2i.t] -> unit -> t
Texture_error
if the requested size exceeds the maximal texture size allowed by the context.Texture_error
if the 6 textures, images or empty layers do not have the same dimensions.
val size : t -> OgamlMath.Vector2i.t
val minify : t -> MinifyFilter.t -> unit
val magnify : t -> MagnifyFilter.t -> unit
val wrap : t -> WrapFunction.t -> unit
val mipmap_levels : t -> int
val mipmap : t -> int -> CubemapMipmap.t
val face : t -> [ `PositiveX | `PositiveY | `PositiveZ | `NegativeX | `NegativeY | `NegativeZ] -> CubemapFace.t
val bind : t -> int -> unit