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 4.3 (Drawing, Reading, and Copying Pixels) of the OpenGL 2.1 specs.
Synopsis
- readPixels :: Position -> Size -> PixelData a -> IO ()
- readBuffer :: StateVar BufferMode
- data PixelCopyType
- copyPixels :: Position -> Size -> PixelCopyType -> IO ()
- data BlitBuffer
- blitFramebuffer :: Position -> Position -> Position -> Position -> [BlitBuffer] -> TextureFilter -> IO ()
Reading Pixels
Copying Pixels
data PixelCopyType Source #
Instances
Eq PixelCopyType Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels (==) :: PixelCopyType -> PixelCopyType -> Bool # (/=) :: PixelCopyType -> PixelCopyType -> Bool # | |
Ord PixelCopyType Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels compare :: PixelCopyType -> PixelCopyType -> Ordering # (<) :: PixelCopyType -> PixelCopyType -> Bool # (<=) :: PixelCopyType -> PixelCopyType -> Bool # (>) :: PixelCopyType -> PixelCopyType -> Bool # (>=) :: PixelCopyType -> PixelCopyType -> Bool # max :: PixelCopyType -> PixelCopyType -> PixelCopyType # min :: PixelCopyType -> PixelCopyType -> PixelCopyType # | |
Show PixelCopyType Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels showsPrec :: Int -> PixelCopyType -> ShowS # show :: PixelCopyType -> String # showList :: [PixelCopyType] -> ShowS # |
copyPixels :: Position -> Size -> PixelCopyType -> IO () Source #
Copying Pixels for framebuffers
data BlitBuffer Source #
The buffers which can be copied with blitFramebuffer
.
Instances
Eq BlitBuffer Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels (==) :: BlitBuffer -> BlitBuffer -> Bool # (/=) :: BlitBuffer -> BlitBuffer -> Bool # | |
Ord BlitBuffer Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels compare :: BlitBuffer -> BlitBuffer -> Ordering # (<) :: BlitBuffer -> BlitBuffer -> Bool # (<=) :: BlitBuffer -> BlitBuffer -> Bool # (>) :: BlitBuffer -> BlitBuffer -> Bool # (>=) :: BlitBuffer -> BlitBuffer -> Bool # max :: BlitBuffer -> BlitBuffer -> BlitBuffer # min :: BlitBuffer -> BlitBuffer -> BlitBuffer # | |
Show BlitBuffer Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ReadCopyPixels showsPrec :: Int -> BlitBuffer -> ShowS # show :: BlitBuffer -> String # showList :: [BlitBuffer] -> ShowS # |
blitFramebuffer :: Position -> Position -> Position -> Position -> [BlitBuffer] -> TextureFilter -> IO () Source #