Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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 2.1 specs.
Synopsis
- data TextureTarget1D = Texture1D
- data TextureTarget2D
- data TextureTarget2DMultisample = Texture2DMultisample
- data TextureTargetCubeMap = TextureCubeMap
- data TextureTargetCubeMapFace
- data TextureTarget3D
- data TextureTarget2DMultisampleArray = Texture2DMultisampleArray
- data TextureTargetBuffer = TextureBuffer'
- class BindableTextureTarget t
- class ParameterizedTextureTarget t
- class OneDimensionalTextureTarget t
- class TwoDimensionalTextureTarget t
- class ThreeDimensionalTextureTarget t
- class QueryableTextureTarget t
- class GettableTextureTarget t
- type Level = GLint
- type Border = GLint
- newtype TexturePosition1D = TexturePosition1D GLint
- data TexturePosition2D = TexturePosition2D !GLint !GLint
- data TexturePosition3D = TexturePosition3D !GLint !GLint !GLint
- newtype TextureSize1D = TextureSize1D GLsizei
- data TextureSize2D = TextureSize2D !GLsizei !GLsizei
- data TextureSize3D = TextureSize3D !GLsizei !GLsizei !GLsizei
- texImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize1D -> Border -> PixelData a -> IO ()
- texImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize2D -> Border -> PixelData a -> IO ()
- texImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize3D -> Border -> PixelData a -> IO ()
- copyTexImage1D :: OneDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize1D -> Border -> IO ()
- copyTexImage2D :: TwoDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize2D -> Border -> IO ()
- texSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> PixelData a -> IO ()
- texSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> PixelData a -> IO ()
- texSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> PixelData a -> IO ()
- getTexImage :: GettableTextureTarget t => t -> Level -> PixelData a -> IO ()
- copyTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> Position -> TextureSize1D -> IO ()
- copyTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> Position -> TextureSize2D -> IO ()
- copyTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> Position -> TextureSize2D -> IO ()
- newtype CompressedTextureFormat = CompressedTextureFormat GLenum
- compressedTextureFormats :: GettableStateVar [CompressedTextureFormat]
- data CompressedPixelData a = CompressedPixelData !CompressedTextureFormat GLsizei (Ptr a)
- compressedTexImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize1D -> Border -> CompressedPixelData a -> IO ()
- compressedTexImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize2D -> Border -> CompressedPixelData a -> IO ()
- compressedTexImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize3D -> Border -> CompressedPixelData a -> IO ()
- compressedTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> CompressedPixelData a -> IO ()
- compressedTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> CompressedPixelData a -> IO ()
- compressedTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> CompressedPixelData a -> IO ()
- getCompressedTexImage :: GettableTextureTarget t => t -> Level -> Ptr a -> IO ()
- data SampleLocations
- texImage2DMultisample :: TextureTarget2DMultisample -> Proxy -> Samples -> PixelInternalFormat -> TextureSize2D -> SampleLocations -> IO ()
- texImage3DMultisample :: TextureTarget2DMultisampleArray -> Proxy -> Samples -> PixelInternalFormat -> TextureSize3D -> SampleLocations -> IO ()
- maxTextureSize :: GettableStateVar GLsizei
- maxCubeMapTextureSize :: GettableStateVar GLsizei
- maxRectangleTextureSize :: GettableStateVar GLsizei
- max3DTextureSize :: GettableStateVar GLsizei
- maxArrayTextureLayers :: GettableStateVar GLsizei
- maxSampleMaskWords :: GettableStateVar GLsizei
- maxColorTextureSamples :: GettableStateVar GLsizei
- maxDepthTextureSamples :: GettableStateVar GLsizei
- maxIntegerSamples :: GettableStateVar GLsizei
Texture Targets
One-Dimensional Texture Targets
data TextureTarget1D Source #
Instances
Two-Dimensional Texture Targets
data TextureTarget2D Source #
Instances
data TextureTarget2DMultisample Source #
Instances
data TextureTargetCubeMap Source #
Instances
data TextureTargetCubeMapFace Source #
TextureCubeMapPositiveX | |
TextureCubeMapNegativeX | |
TextureCubeMapPositiveY | |
TextureCubeMapNegativeY | |
TextureCubeMapPositiveZ | |
TextureCubeMapNegativeZ |
Instances
Three-Dimensional Texture Targets
data TextureTarget3D Source #
Instances
data TextureTarget2DMultisampleArray Source #
Instances
Texture Buffer Target
data TextureTargetBuffer Source #
Instances
Texture Target Classification
class BindableTextureTarget t Source #
marshalBindableTextureTarget, marshalBindableTextureTargetPName1I
Instances
class ParameterizedTextureTarget t Source #
marshalParameterizedTextureTarget, marshalParameterizedTextureTargetProxy, marshalParameterizedTextureTargetEnableCap
Instances
class OneDimensionalTextureTarget t Source #
marshalOneDimensionalTextureTarget
class TwoDimensionalTextureTarget t Source #
marshalTwoDimensionalTextureTarget
class ThreeDimensionalTextureTarget t Source #
marshalThreeDimensionalTextureTarget
class QueryableTextureTarget t Source #
marshalQueryableTextureTarget
Instances
class GettableTextureTarget t Source #
marshalGettableTextureTarget
Texture-related Data Types
newtype TexturePosition1D Source #
Instances
Eq TexturePosition1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TexturePosition1D -> TexturePosition1D -> Bool # (/=) :: TexturePosition1D -> TexturePosition1D -> Bool # | |
Ord TexturePosition1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TexturePosition1D -> TexturePosition1D -> Ordering # (<) :: TexturePosition1D -> TexturePosition1D -> Bool # (<=) :: TexturePosition1D -> TexturePosition1D -> Bool # (>) :: TexturePosition1D -> TexturePosition1D -> Bool # (>=) :: TexturePosition1D -> TexturePosition1D -> Bool # max :: TexturePosition1D -> TexturePosition1D -> TexturePosition1D # min :: TexturePosition1D -> TexturePosition1D -> TexturePosition1D # | |
Show TexturePosition1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TexturePosition1D -> ShowS # show :: TexturePosition1D -> String # showList :: [TexturePosition1D] -> ShowS # |
data TexturePosition2D Source #
Instances
Eq TexturePosition2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TexturePosition2D -> TexturePosition2D -> Bool # (/=) :: TexturePosition2D -> TexturePosition2D -> Bool # | |
Ord TexturePosition2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TexturePosition2D -> TexturePosition2D -> Ordering # (<) :: TexturePosition2D -> TexturePosition2D -> Bool # (<=) :: TexturePosition2D -> TexturePosition2D -> Bool # (>) :: TexturePosition2D -> TexturePosition2D -> Bool # (>=) :: TexturePosition2D -> TexturePosition2D -> Bool # max :: TexturePosition2D -> TexturePosition2D -> TexturePosition2D # min :: TexturePosition2D -> TexturePosition2D -> TexturePosition2D # | |
Show TexturePosition2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TexturePosition2D -> ShowS # show :: TexturePosition2D -> String # showList :: [TexturePosition2D] -> ShowS # |
data TexturePosition3D Source #
Instances
Eq TexturePosition3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TexturePosition3D -> TexturePosition3D -> Bool # (/=) :: TexturePosition3D -> TexturePosition3D -> Bool # | |
Ord TexturePosition3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TexturePosition3D -> TexturePosition3D -> Ordering # (<) :: TexturePosition3D -> TexturePosition3D -> Bool # (<=) :: TexturePosition3D -> TexturePosition3D -> Bool # (>) :: TexturePosition3D -> TexturePosition3D -> Bool # (>=) :: TexturePosition3D -> TexturePosition3D -> Bool # max :: TexturePosition3D -> TexturePosition3D -> TexturePosition3D # min :: TexturePosition3D -> TexturePosition3D -> TexturePosition3D # | |
Show TexturePosition3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TexturePosition3D -> ShowS # show :: TexturePosition3D -> String # showList :: [TexturePosition3D] -> ShowS # |
newtype TextureSize1D Source #
Instances
Eq TextureSize1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TextureSize1D -> TextureSize1D -> Bool # (/=) :: TextureSize1D -> TextureSize1D -> Bool # | |
Ord TextureSize1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TextureSize1D -> TextureSize1D -> Ordering # (<) :: TextureSize1D -> TextureSize1D -> Bool # (<=) :: TextureSize1D -> TextureSize1D -> Bool # (>) :: TextureSize1D -> TextureSize1D -> Bool # (>=) :: TextureSize1D -> TextureSize1D -> Bool # max :: TextureSize1D -> TextureSize1D -> TextureSize1D # min :: TextureSize1D -> TextureSize1D -> TextureSize1D # | |
Show TextureSize1D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TextureSize1D -> ShowS # show :: TextureSize1D -> String # showList :: [TextureSize1D] -> ShowS # |
data TextureSize2D Source #
Instances
Eq TextureSize2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TextureSize2D -> TextureSize2D -> Bool # (/=) :: TextureSize2D -> TextureSize2D -> Bool # | |
Ord TextureSize2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TextureSize2D -> TextureSize2D -> Ordering # (<) :: TextureSize2D -> TextureSize2D -> Bool # (<=) :: TextureSize2D -> TextureSize2D -> Bool # (>) :: TextureSize2D -> TextureSize2D -> Bool # (>=) :: TextureSize2D -> TextureSize2D -> Bool # max :: TextureSize2D -> TextureSize2D -> TextureSize2D # min :: TextureSize2D -> TextureSize2D -> TextureSize2D # | |
Show TextureSize2D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TextureSize2D -> ShowS # show :: TextureSize2D -> String # showList :: [TextureSize2D] -> ShowS # |
data TextureSize3D Source #
Instances
Eq TextureSize3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: TextureSize3D -> TextureSize3D -> Bool # (/=) :: TextureSize3D -> TextureSize3D -> Bool # | |
Ord TextureSize3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: TextureSize3D -> TextureSize3D -> Ordering # (<) :: TextureSize3D -> TextureSize3D -> Bool # (<=) :: TextureSize3D -> TextureSize3D -> Bool # (>) :: TextureSize3D -> TextureSize3D -> Bool # (>=) :: TextureSize3D -> TextureSize3D -> Bool # max :: TextureSize3D -> TextureSize3D -> TextureSize3D # min :: TextureSize3D -> TextureSize3D -> TextureSize3D # | |
Show TextureSize3D Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> TextureSize3D -> ShowS # show :: TextureSize3D -> String # showList :: [TextureSize3D] -> ShowS # |
Texture Image Specification
texImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize1D -> Border -> PixelData a -> IO () Source #
texImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize2D -> Border -> PixelData a -> IO () Source #
texImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> PixelInternalFormat -> TextureSize3D -> Border -> PixelData a -> IO () Source #
copyTexImage1D :: OneDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize1D -> Border -> IO () Source #
copyTexImage2D :: TwoDimensionalTextureTarget t => t -> Level -> PixelInternalFormat -> Position -> TextureSize2D -> Border -> IO () Source #
texSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> PixelData a -> IO () Source #
texSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> PixelData a -> IO () Source #
texSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> PixelData a -> IO () Source #
getTexImage :: GettableTextureTarget t => t -> Level -> PixelData a -> IO () Source #
Alternate Texture Image Specification Commands
copyTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> Position -> TextureSize1D -> IO () Source #
copyTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> Position -> TextureSize2D -> IO () Source #
copyTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> Position -> TextureSize2D -> IO () Source #
Compressed Texture Images
newtype CompressedTextureFormat Source #
Instances
data CompressedPixelData a Source #
Instances
compressedTexImage1D :: OneDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize1D -> Border -> CompressedPixelData a -> IO () Source #
compressedTexImage2D :: TwoDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize2D -> Border -> CompressedPixelData a -> IO () Source #
compressedTexImage3D :: ThreeDimensionalTextureTarget t => t -> Proxy -> Level -> TextureSize3D -> Border -> CompressedPixelData a -> IO () Source #
compressedTexSubImage1D :: OneDimensionalTextureTarget t => t -> Level -> TexturePosition1D -> TextureSize1D -> CompressedPixelData a -> IO () Source #
compressedTexSubImage2D :: TwoDimensionalTextureTarget t => t -> Level -> TexturePosition2D -> TextureSize2D -> CompressedPixelData a -> IO () Source #
compressedTexSubImage3D :: ThreeDimensionalTextureTarget t => t -> Level -> TexturePosition3D -> TextureSize3D -> CompressedPixelData a -> IO () Source #
getCompressedTexImage :: GettableTextureTarget t => t -> Level -> Ptr a -> IO () Source #
Multisample Texture Images
data SampleLocations Source #
Instances
Eq SampleLocations Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification (==) :: SampleLocations -> SampleLocations -> Bool # (/=) :: SampleLocations -> SampleLocations -> Bool # | |
Ord SampleLocations Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification compare :: SampleLocations -> SampleLocations -> Ordering # (<) :: SampleLocations -> SampleLocations -> Bool # (<=) :: SampleLocations -> SampleLocations -> Bool # (>) :: SampleLocations -> SampleLocations -> Bool # (>=) :: SampleLocations -> SampleLocations -> Bool # max :: SampleLocations -> SampleLocations -> SampleLocations # min :: SampleLocations -> SampleLocations -> SampleLocations # | |
Show SampleLocations Source # | |
Defined in Graphics.Rendering.OpenGL.GL.Texturing.Specification showsPrec :: Int -> SampleLocations -> ShowS # show :: SampleLocations -> String # showList :: [SampleLocations] -> ShowS # |
texImage2DMultisample :: TextureTarget2DMultisample -> Proxy -> Samples -> PixelInternalFormat -> TextureSize2D -> SampleLocations -> IO () Source #
texImage3DMultisample :: TextureTarget2DMultisampleArray -> Proxy -> Samples -> PixelInternalFormat -> TextureSize3D -> SampleLocations -> IO () Source #