opengles-0.7.0: OpenGL ES 2.0 and 3.0 with EGL 1.4

Safe HaskellNone
LanguageHaskell2010

Graphics.OpenGLES.Texture

Contents

Synopsis

Texture

data Texture a Source

Instances

glLoadKtx :: Maybe (Texture a) -> Ktx -> GL (Texture a) Source

Load a GL Texture object from Ktx texture container. See https://github.com/KhronosGroup/KTX/blob/master/lib/loader.c TODO: reject 2DArray/3D texture if unsupported

Unsafe Operations

glLoadTex2D Source

Arguments

:: (Storable a, ExternalFormat a b) 
=> Maybe (Texture b)

if any, reuse the texture

-> Bool

needs mipmap update?

-> ForeignPtr a

pixel base components

-> V2 Word32

width, height

-> GL (Texture b) 

Upload 2D texture of raw memory bitmap.

glLoadTex3D Source

Arguments

:: (Storable a, ExternalFormat a b) 
=> Maybe (Texture b)

if any, reuse the texture

-> Bool

needs mipmap update?

-> ForeignPtr a

pixel base components

-> V3 Word32

width, height, depth

-> GL (Texture b) 

Upload 3D texture of raw memory bitmap.

glLoadTex2DArray Source

Arguments

:: (Storable a, ExternalFormat a b) 
=> Maybe (Texture b)

if any, reuse the texture

-> Bool

needs mipmap update?

-> ForeignPtr a

pixel base components

-> V3 Word32

width, height, layer depth

-> GL (Texture b) 

Upload 2DArray texture of raw memory bitmap.

Sampler

data Sampler Source

(Texture wrap mode, A number of ANISOTROPY filter sampling points (specify 1.0 to disable anisotropy filter), (Fallback) Mag and Min filters).

When EXT_texture_filter_anisotropic is not supported, fallback filters are used instead.