ombra-0.2.1.0: Render engine.

Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.Ombra.Texture

Synopsis

Documentation

data Texture Source #

A texture.

Instances

mkTexture Source #

Arguments

:: GLES 
=> Int

Width.

-> Int

Height.

-> [Color]

List of pixels

-> Texture 

Creates a Texture from a list of pixels.

mkTextureFloat Source #

Arguments

:: GLES 
=> Int

Width.

-> Int

Height.

-> [Vec4]

List of vectors.

-> Texture 

Creates a float Texture from a list of vectors.

mkTextureRaw Source #

Arguments

:: GLES 
=> Int

Width.

-> Int

Height.

-> UInt8Array

Array of pixel components.

-> Int

Texture hash

-> Texture 

data Filter Source #

Constructors

Linear

Average of the four nearest pixels.

Nearest

Nearest pixel.

Instances

Eq Filter Source # 

Methods

(==) :: 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.