Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Texture
- mkTexture :: GLES => Int -> Int -> Bool -> [[Color]] -> Texture
- mkTextureFloat :: GLES => Int -> Int -> [Vec4] -> Texture
- mkTextureRaw :: GLES => Int -> Int -> Bool -> [UInt8Array] -> Int -> Texture
- data Filter
- setFilter :: (Filter, Maybe Filter) -> Filter -> Texture -> Texture
- colorTex :: GLES => Color -> Texture
Documentation
:: GLES | |
=> Int | Width. Must be a power of two. |
-> Int | Height. Must be a power of two. |
-> Bool | Generate mipmaps automatically. |
-> [[Color]] | List of pixels, one for each level of detail. The first element is the base image level, the second image is half the size of the base, and so on. Use just one level of detail if you don't want mipmaps, or you used True in the previous argument. |
-> Texture |
Creates a Texture
from a list of pixels.
Creates a float Texture
from a list of vectors.