Cubemap texture
Module OgamlGraphics.Texture.Cubemap
Cubemap texturesThis module provides an abstraction of OpenGL's cubemap textures
Creates a cubemap texture from 6 textures, images or empty layers of a given dimension. Generates all mipmaps by default.
Raises
Also raises
Raises
Texture_error
if the requested size exceeds the maximal texture size allowed by the context.Also raises
Texture_error
if the 6 textures, images or empty layers do not have the same dimensions.
Size of a face of a cubemap texture
Sets the minifying filter of a texture. Defaults as LinearMipmapLinear.
Sets the magnifying filter of a texture. Defaults as Linear.
Sets the wrapping function of a texture. Defaults as ClampEdge.
Returns the number of mipmap levels of a texture
Returns a particular mipmap level of a texture
Returns a particular face of a texture
System only : binds the texture for drawing