ombra-0.2.2.0: Render engine.
Graphics.Rendering.Ombra.Texture
Synopsis
data Texture Source #
A texture.
Instances
Methods
(==) :: Texture -> Texture -> Bool #
(/=) :: Texture -> Texture -> Bool #
mkTexture Source #
Arguments
Width.
Height.
List of pixels
Creates a Texture from a list of pixels.
Texture
mkTextureFloat Source #
List of vectors.
Creates a float Texture from a list of vectors.
mkTextureRaw Source #
Array of pixel components.
Texture hash
data Filter Source #
Constructors
Average of the four nearest pixels.
Nearest pixel.
(==) :: Filter -> Filter -> Bool #
(/=) :: Filter -> Filter -> Bool #
setFilter :: Filter -> Filter -> Texture -> Texture Source #
Change the Texture minifying and magnifying functions. This doesn't work on sublayer textures.
colorTex :: GLES => Color -> Texture Source #
Generate a 1x1 texture.