|
Graphics.Rendering.OpenGL.GL.Texturing.Specification | Portability | portable | Stability | provisional | Maintainer | sven.panne@aedion.de |
|
|
|
|
|
Description |
This module corresponds to section 3.8.1 (Texture Image Specification),
section 3.8.2 (Alternate Texture Image Specification Commands), and section
3.8.3 (Compressed Texture Images) of the OpenGL 1.5 specs.
|
|
Synopsis |
|
|
|
|
Texture-related Data Types
|
|
data TextureTarget |
Constructors | Texture1D | | Texture2D | | Texture3D | | TextureCubeMap | | TextureRectangle | |
| Instances | |
|
|
data CubeMapTarget |
Constructors | TextureCubeMapPositiveX | | TextureCubeMapNegativeX | | TextureCubeMapPositiveY | | TextureCubeMapNegativeY | | TextureCubeMapPositiveZ | | TextureCubeMapNegativeZ | |
| Instances | |
|
|
type Level = GLint |
|
type Border = GLint |
|
newtype TexturePosition1D |
Constructors | | Instances | |
|
|
data TexturePosition2D |
Constructors | | Instances | |
|
|
data TexturePosition3D |
Constructors | | Instances | |
|
|
newtype TextureSize1D |
Constructors | | Instances | |
|
|
data TextureSize2D |
Constructors | | Instances | |
|
|
data TextureSize3D |
Constructors | | Instances | |
|
|
Texture Image Specification
|
|
texImage1D :: Proxy -> Level -> PixelInternalFormat -> TextureSize1D -> Border -> PixelData a -> IO () |
|
texImage2D :: Maybe CubeMapTarget -> Proxy -> Level -> PixelInternalFormat -> TextureSize2D -> Border -> PixelData a -> IO () |
|
texImage3D :: Proxy -> Level -> PixelInternalFormat -> TextureSize3D -> Border -> PixelData a -> IO () |
|
copyTexImage1D :: Level -> PixelInternalFormat -> Position -> TextureSize1D -> Border -> IO () |
|
copyTexImage2D :: Maybe CubeMapTarget -> Level -> PixelInternalFormat -> Position -> TextureSize2D -> Border -> IO () |
|
texSubImage1D :: Level -> TexturePosition1D -> TextureSize1D -> PixelData a -> IO () |
|
texSubImage2D :: Maybe CubeMapTarget -> Level -> TexturePosition2D -> TextureSize2D -> PixelData a -> IO () |
|
texSubImage3D :: Level -> TexturePosition3D -> TextureSize3D -> PixelData a -> IO () |
|
getTexImage :: Either TextureTarget CubeMapTarget -> Level -> PixelData a -> IO () |
|
Alternate Texture Image Specification Commands
|
|
copyTexSubImage1D :: Level -> TexturePosition1D -> Position -> TextureSize1D -> IO () |
|
copyTexSubImage2D :: Maybe CubeMapTarget -> Level -> TexturePosition2D -> Position -> TextureSize2D -> IO () |
|
copyTexSubImage3D :: Level -> TexturePosition3D -> Position -> TextureSize2D -> IO () |
|
Compressed Texture Images
|
|
newtype CompressedTextureFormat |
Constructors | CompressedTextureFormat GLenum | |
| Instances | |
|
|
compressedTextureFormats :: GettableStateVar [CompressedTextureFormat] |
|
data CompressedPixelData a |
Constructors | | Instances | |
|
|
compressedTexImage1D :: Proxy -> Level -> TextureSize1D -> Border -> CompressedPixelData a -> IO () |
|
compressedTexImage2D :: Maybe CubeMapTarget -> Proxy -> Level -> TextureSize2D -> Border -> CompressedPixelData a -> IO () |
|
compressedTexImage3D :: Proxy -> Level -> TextureSize3D -> Border -> CompressedPixelData a -> IO () |
|
compressedTexSubImage1D :: Level -> TexturePosition1D -> TextureSize1D -> CompressedPixelData a -> IO () |
|
compressedTexSubImage2D :: Maybe CubeMapTarget -> Level -> TexturePosition2D -> TextureSize2D -> CompressedPixelData a -> IO () |
|
compressedTexSubImage3D :: Level -> TexturePosition3D -> TextureSize3D -> CompressedPixelData a -> IO () |
|
getCompressedTexImage :: Either TextureTarget CubeMapTarget -> Level -> Ptr a -> IO () |
|
Produced by Haddock version 0.8 |