gl-0.9: Complete OpenGL raw bindings
Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Ext.ARB.TextureCompression

Synopsis

Extension Support

gl_ARB_texture_compression :: Bool Source #

Checks that the GL_ARB_texture_compression extension is available.

GL_ARB_texture_compression

glCompressedTexImage1DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLint -> GLsizei -> Ptr () -> m () Source #

Usage: glCompressedTexImage1DARB target level internalformat width border imageSize data

The parameter target is a TextureTarget, one of: GL_DETAIL_TEXTURE_2D_SGIS, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_1D_EXT, GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_2D_EXT, GL_PROXY_TEXTURE_3D, GL_PROXY_TEXTURE_3D_EXT, GL_PROXY_TEXTURE_4D_SGIS, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_3D_EXT, GL_TEXTURE_3D_OES, GL_TEXTURE_4D_SGIS, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_BASE_LEVEL_SGIS, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MAX_LEVEL_SGIS, GL_TEXTURE_MAX_LOD, GL_TEXTURE_MAX_LOD_SGIS, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MIN_LOD_SGIS.

The parameter level is a CheckedInt32.

The parameter internalformat is a InternalFormat, one of: GL_ALPHA12, GL_ALPHA16, GL_ALPHA16_ICC_SGIX, GL_ALPHA4, GL_ALPHA8, GL_ALPHA_ICC_SGIX, GL_DEPTH_COMPONENT16_SGIX, GL_DEPTH_COMPONENT24_SGIX, GL_DEPTH_COMPONENT32_SGIX, GL_DUAL_ALPHA12_SGIS, GL_DUAL_ALPHA16_SGIS, GL_DUAL_ALPHA4_SGIS, GL_DUAL_ALPHA8_SGIS, GL_DUAL_INTENSITY12_SGIS, GL_DUAL_INTENSITY16_SGIS, GL_DUAL_INTENSITY4_SGIS, GL_DUAL_INTENSITY8_SGIS, GL_DUAL_LUMINANCE12_SGIS, GL_DUAL_LUMINANCE16_SGIS, GL_DUAL_LUMINANCE4_SGIS, GL_DUAL_LUMINANCE8_SGIS, GL_DUAL_LUMINANCE_ALPHA4_SGIS, GL_DUAL_LUMINANCE_ALPHA8_SGIS, GL_INTENSITY, GL_INTENSITY12, GL_INTENSITY16, GL_INTENSITY16_ICC_SGIX, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY_ICC_SGIX, GL_LUMINANCE12, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE16, GL_LUMINANCE16_ALPHA16, GL_LUMINANCE16_ALPHA8_ICC_SGIX, GL_LUMINANCE16_ICC_SGIX, GL_LUMINANCE4, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE_ALPHA_ICC_SGIX, GL_LUMINANCE_ICC_SGIX, GL_QUAD_ALPHA4_SGIS, GL_QUAD_ALPHA8_SGIS, GL_QUAD_INTENSITY4_SGIS, GL_QUAD_INTENSITY8_SGIS, GL_QUAD_LUMINANCE4_SGIS, GL_QUAD_LUMINANCE8_SGIS, GL_R3_G3_B2, GL_R5_G6_B5_A8_ICC_SGIX, GL_R5_G6_B5_ICC_SGIX, GL_RGB10, GL_RGB10_A2, GL_RGB12, GL_RGB16, GL_RGB2_EXT, GL_RGB4, GL_RGB5, GL_RGB5_A1, GL_RGB8, GL_RGBA12, GL_RGBA16, GL_RGBA2, GL_RGBA4, GL_RGBA8, GL_RGBA_ICC_SGIX, GL_RGB_ICC_SGIX.

The parameter border is a CheckedInt32.

The parameter data is a CompressedTextureARB.

The length of data should be imageSize.

This command is an alias for glCompressedTexImage1D.

glCompressedTexImage2DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr () -> m () Source #

Usage: glCompressedTexImage2DARB target level internalformat width height border imageSize data

The parameter target is a TextureTarget, one of: GL_DETAIL_TEXTURE_2D_SGIS, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_1D_EXT, GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_2D_EXT, GL_PROXY_TEXTURE_3D, GL_PROXY_TEXTURE_3D_EXT, GL_PROXY_TEXTURE_4D_SGIS, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_3D_EXT, GL_TEXTURE_3D_OES, GL_TEXTURE_4D_SGIS, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_BASE_LEVEL_SGIS, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MAX_LEVEL_SGIS, GL_TEXTURE_MAX_LOD, GL_TEXTURE_MAX_LOD_SGIS, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MIN_LOD_SGIS.

The parameter level is a CheckedInt32.

The parameter internalformat is a InternalFormat, one of: GL_ALPHA12, GL_ALPHA16, GL_ALPHA16_ICC_SGIX, GL_ALPHA4, GL_ALPHA8, GL_ALPHA_ICC_SGIX, GL_DEPTH_COMPONENT16_SGIX, GL_DEPTH_COMPONENT24_SGIX, GL_DEPTH_COMPONENT32_SGIX, GL_DUAL_ALPHA12_SGIS, GL_DUAL_ALPHA16_SGIS, GL_DUAL_ALPHA4_SGIS, GL_DUAL_ALPHA8_SGIS, GL_DUAL_INTENSITY12_SGIS, GL_DUAL_INTENSITY16_SGIS, GL_DUAL_INTENSITY4_SGIS, GL_DUAL_INTENSITY8_SGIS, GL_DUAL_LUMINANCE12_SGIS, GL_DUAL_LUMINANCE16_SGIS, GL_DUAL_LUMINANCE4_SGIS, GL_DUAL_LUMINANCE8_SGIS, GL_DUAL_LUMINANCE_ALPHA4_SGIS, GL_DUAL_LUMINANCE_ALPHA8_SGIS, GL_INTENSITY, GL_INTENSITY12, GL_INTENSITY16, GL_INTENSITY16_ICC_SGIX, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY_ICC_SGIX, GL_LUMINANCE12, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE16, GL_LUMINANCE16_ALPHA16, GL_LUMINANCE16_ALPHA8_ICC_SGIX, GL_LUMINANCE16_ICC_SGIX, GL_LUMINANCE4, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE_ALPHA_ICC_SGIX, GL_LUMINANCE_ICC_SGIX, GL_QUAD_ALPHA4_SGIS, GL_QUAD_ALPHA8_SGIS, GL_QUAD_INTENSITY4_SGIS, GL_QUAD_INTENSITY8_SGIS, GL_QUAD_LUMINANCE4_SGIS, GL_QUAD_LUMINANCE8_SGIS, GL_R3_G3_B2, GL_R5_G6_B5_A8_ICC_SGIX, GL_R5_G6_B5_ICC_SGIX, GL_RGB10, GL_RGB10_A2, GL_RGB12, GL_RGB16, GL_RGB2_EXT, GL_RGB4, GL_RGB5, GL_RGB5_A1, GL_RGB8, GL_RGBA12, GL_RGBA16, GL_RGBA2, GL_RGBA4, GL_RGBA8, GL_RGBA_ICC_SGIX, GL_RGB_ICC_SGIX.

The parameter border is a CheckedInt32.

The parameter data is a CompressedTextureARB.

The length of data should be imageSize.

This command is an alias for glCompressedTexImage2D.

glCompressedTexImage3DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr () -> m () Source #

Usage: glCompressedTexImage3DARB target level internalformat width height depth border imageSize data

The parameter target is a TextureTarget, one of: GL_DETAIL_TEXTURE_2D_SGIS, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_1D_EXT, GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_2D_EXT, GL_PROXY_TEXTURE_3D, GL_PROXY_TEXTURE_3D_EXT, GL_PROXY_TEXTURE_4D_SGIS, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_3D_EXT, GL_TEXTURE_3D_OES, GL_TEXTURE_4D_SGIS, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_BASE_LEVEL_SGIS, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MAX_LEVEL_SGIS, GL_TEXTURE_MAX_LOD, GL_TEXTURE_MAX_LOD_SGIS, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MIN_LOD_SGIS.

The parameter level is a CheckedInt32.

The parameter internalformat is a InternalFormat, one of: GL_ALPHA12, GL_ALPHA16, GL_ALPHA16_ICC_SGIX, GL_ALPHA4, GL_ALPHA8, GL_ALPHA_ICC_SGIX, GL_DEPTH_COMPONENT16_SGIX, GL_DEPTH_COMPONENT24_SGIX, GL_DEPTH_COMPONENT32_SGIX, GL_DUAL_ALPHA12_SGIS, GL_DUAL_ALPHA16_SGIS, GL_DUAL_ALPHA4_SGIS, GL_DUAL_ALPHA8_SGIS, GL_DUAL_INTENSITY12_SGIS, GL_DUAL_INTENSITY16_SGIS, GL_DUAL_INTENSITY4_SGIS, GL_DUAL_INTENSITY8_SGIS, GL_DUAL_LUMINANCE12_SGIS, GL_DUAL_LUMINANCE16_SGIS, GL_DUAL_LUMINANCE4_SGIS, GL_DUAL_LUMINANCE8_SGIS, GL_DUAL_LUMINANCE_ALPHA4_SGIS, GL_DUAL_LUMINANCE_ALPHA8_SGIS, GL_INTENSITY, GL_INTENSITY12, GL_INTENSITY16, GL_INTENSITY16_ICC_SGIX, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY_ICC_SGIX, GL_LUMINANCE12, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE16, GL_LUMINANCE16_ALPHA16, GL_LUMINANCE16_ALPHA8_ICC_SGIX, GL_LUMINANCE16_ICC_SGIX, GL_LUMINANCE4, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE_ALPHA_ICC_SGIX, GL_LUMINANCE_ICC_SGIX, GL_QUAD_ALPHA4_SGIS, GL_QUAD_ALPHA8_SGIS, GL_QUAD_INTENSITY4_SGIS, GL_QUAD_INTENSITY8_SGIS, GL_QUAD_LUMINANCE4_SGIS, GL_QUAD_LUMINANCE8_SGIS, GL_R3_G3_B2, GL_R5_G6_B5_A8_ICC_SGIX, GL_R5_G6_B5_ICC_SGIX, GL_RGB10, GL_RGB10_A2, GL_RGB12, GL_RGB16, GL_RGB2_EXT, GL_RGB4, GL_RGB5, GL_RGB5_A1, GL_RGB8, GL_RGBA12, GL_RGBA16, GL_RGBA2, GL_RGBA4, GL_RGBA8, GL_RGBA_ICC_SGIX, GL_RGB_ICC_SGIX.

The parameter border is a CheckedInt32.

The parameter data is a CompressedTextureARB.

The length of data should be imageSize.

This command is an alias for glCompressedTexImage3D.

glCompressedTexSubImage3DARB :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLsizei -> Ptr () -> m () Source #

Usage: glCompressedTexSubImage3DARB target level xoffset yoffset zoffset width height depth format imageSize data

The parameter target is a TextureTarget, one of: GL_DETAIL_TEXTURE_2D_SGIS, GL_PROXY_TEXTURE_1D, GL_PROXY_TEXTURE_1D_EXT, GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_2D_EXT, GL_PROXY_TEXTURE_3D, GL_PROXY_TEXTURE_3D_EXT, GL_PROXY_TEXTURE_4D_SGIS, GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_3D_EXT, GL_TEXTURE_3D_OES, GL_TEXTURE_4D_SGIS, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_BASE_LEVEL_SGIS, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MAX_LEVEL_SGIS, GL_TEXTURE_MAX_LOD, GL_TEXTURE_MAX_LOD_SGIS, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MIN_LOD_SGIS.

The parameter level is a CheckedInt32.

The parameter xoffset is a CheckedInt32.

The parameter yoffset is a CheckedInt32.

The parameter zoffset is a CheckedInt32.

The parameter format is a PixelFormat, one of: GL_ABGR_EXT, GL_ALPHA, GL_BLUE, GL_CMYKA_EXT, GL_CMYK_EXT, GL_COLOR_INDEX, GL_DEPTH_COMPONENT, GL_GREEN, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RED, GL_RED_EXT, GL_RGB, GL_RGBA, GL_STENCIL_INDEX, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT, GL_YCRCB_422_SGIX, GL_YCRCB_444_SGIX.

The parameter data is a CompressedTextureARB.

The length of data should be imageSize.

This command is an alias for glCompressedTexSubImage3D.

pattern GL_COMPRESSED_ALPHA_ARB :: (Eq a, Num a) => a Source #

pattern GL_COMPRESSED_INTENSITY_ARB :: (Eq a, Num a) => a Source #

pattern GL_COMPRESSED_LUMINANCE_ARB :: (Eq a, Num a) => a Source #

pattern GL_COMPRESSED_RGBA_ARB :: (Eq a, Num a) => a Source #

pattern GL_COMPRESSED_RGB_ARB :: (Eq a, Num a) => a Source #

pattern GL_TEXTURE_COMPRESSED_ARB :: (Eq a, Num a) => a Source #