OpenGLRaw-2.6.0.0: A raw binding for the OpenGL graphics system

Copyright | (c) Sven Panne 2015
License | BSD3
Maintainer | Sven Panne <svenpanne@gmail.com>
Stability | stable
Portability | portable
Safe Haskell | None
Language | Haskell2010

Graphics.Rendering.OpenGL.Raw.ARB.TextureCompression

Contents

- Extension Support
- Enums
- Functions

Description

Synopsis

- glGetARBTextureCompression :: MonadIO m => m Bool
- gl_ARB_texture_compression :: Bool
- gl_COMPRESSED_ALPHA_ARB :: GLenum
- gl_COMPRESSED_INTENSITY_ARB :: GLenum
- gl_COMPRESSED_LUMINANCE_ALPHA_ARB :: GLenum
- gl_COMPRESSED_LUMINANCE_ARB :: GLenum
- gl_COMPRESSED_RGBA_ARB :: GLenum
- gl_COMPRESSED_RGB_ARB :: GLenum
- gl_COMPRESSED_TEXTURE_FORMATS_ARB :: GLenum
- gl_NUM_COMPRESSED_TEXTURE_FORMATS_ARB :: GLenum
- gl_TEXTURE_COMPRESSED_ARB :: GLenum
- gl_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB :: GLenum
- gl_TEXTURE_COMPRESSION_HINT_ARB :: GLenum
- glCompressedTexImage1DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLint -> GLsizei -> Ptr a -> m ()
- glCompressedTexImage2DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr a -> m ()
- glCompressedTexImage3DARB :: MonadIO m => GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLsizei -> Ptr a -> m ()
- glCompressedTexSubImage1DARB :: MonadIO m => GLenum -> GLint -> GLint -> GLsizei -> GLenum -> GLsizei -> Ptr a -> m ()
- glCompressedTexSubImage2DARB :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLsizei -> Ptr a -> m ()
- glCompressedTexSubImage3DARB :: MonadIO m => GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLsizei -> Ptr a -> m ()
- glGetCompressedTexImageARB :: MonadIO m => GLenum -> GLint -> Ptr a -> m ()

# Extension Support

glGetARBTextureCompression :: MonadIO m => m Bool

Is the ARB_texture_compression extension supported?

gl_ARB_texture_compression :: Bool

Is the ARB_texture_compression extension supported? Note that in the presence of multiple contexts with different capabilities, this might be wrong. Use `glGetARBTextureCompression` in those cases instead.

# Enums

gl_COMPRESSED_ALPHA_ARB :: GLenum

gl_COMPRESSED_INTENSITY_ARB :: GLenum

gl_COMPRESSED_LUMINANCE_ALPHA_ARB :: GLenum

gl_COMPRESSED_LUMINANCE_ARB :: GLenum

gl_COMPRESSED_RGBA_ARB :: GLenum

gl_COMPRESSED_RGB_ARB :: GLenum

gl_COMPRESSED_TEXTURE_FORMATS_ARB :: GLenum

gl_NUM_COMPRESSED_TEXTURE_FORMATS_ARB :: GLenum

gl_TEXTURE_COMPRESSED_ARB :: GLenum

gl_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB :: GLenum

gl_TEXTURE_COMPRESSION_HINT_ARB :: GLenum

# Functions

glCompressedTexImage1DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLenum | `internalformat` of type InternalFormat.
-> GLsizei | `width`.
-> GLint | `border` of type `CheckedInt32`.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexImage1D`.

glCompressedTexImage2DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLenum | `internalformat` of type InternalFormat.
-> GLsizei | `width`.
-> GLsizei | `height`.
-> GLint | `border` of type `CheckedInt32`.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexImage2D`.

glCompressedTexImage3DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLenum | `internalformat` of type InternalFormat.
-> GLsizei | `width`.
-> GLsizei | `height`.
-> GLsizei | `depth`.
-> GLint | `border` of type `CheckedInt32`.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexImage3D`.

glCompressedTexSubImage1DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLint | `xoffset` of type `CheckedInt32`.
-> GLsizei | `width`.
-> GLenum | `format` of type PixelFormat.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexSubImage1D`.

glCompressedTexSubImage2DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLint | `xoffset` of type `CheckedInt32`.
-> GLint | `yoffset` of type `CheckedInt32`.
-> GLsizei | `width`.
-> GLsizei | `height`.
-> GLenum | `format` of type PixelFormat.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexSubImage2D`.

glCompressedTexSubImage3DARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> GLint | `xoffset` of type `CheckedInt32`.
-> GLint | `yoffset` of type `CheckedInt32`.
-> GLint | `zoffset` of type `CheckedInt32`.
-> GLsizei | `width`.
-> GLsizei | `height`.
-> GLsizei | `depth`.
-> GLenum | `format` of type PixelFormat.
-> GLsizei | `imageSize`.
-> Ptr a | `data` pointing to `imageSize` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glCompressedTexSubImage3D`.

glGetCompressedTexImageARB

Arguments

:: MonadIO m |
=> GLenum | `target` of type TextureTarget.
-> GLint | `level` of type `CheckedInt32`.
-> Ptr a | `img` pointing to `COMPSIZE(target,level)` elements of type `CompressedTextureARB`.
-> m () |

This command is an alias for `glGetCompressedTexImage`.