|
|
|
|
|
|
|
| Documentation |
|
| data SurfaceFlag |
| Constructors | | SWSURFACE | | | HWSURFACE | | | ASYNCBLIT | | | ANYFORMAT | | | HWPALETTE | | | DOUBLEBUF | | | FULLSCREEN | | | OPENGL | | | OPENGLBLIT | | | RESIZABLE | | | NOFRAME | | | HWACCEL | | | SRCCOLORKEY | | | RLEACCELOK | | | RLEACCEL | | | SRCALPHA | | | PREALLOC | |
| Instances | |
|
|
| data PaletteFlag |
| Constructors | | Instances | |
|
|
| data Surface |
|
|
| type Palette = [Color] |
|
| surfaceFlags :: Surface -> [SurfaceFlag] |
|
| surfaceWidth :: Surface -> Int |
|
| surfaceHeight :: Surface -> Int |
|
| surfacePitch :: Surface -> Int |
|
| surfacePixels :: Surface -> Ptr () |
|
| surfacePixelFormat :: Surface -> PixelFormat |
|
| data PixelFormat |
| Constructors | | PixelFormat | | | pfPalette :: Palette | | | pfBitPerPixel :: Int8 | | | pfBytePerPixel :: Int8 | | | pfRMask, pfGMask, pfBMask, pfAMask :: Word32 | | | pfRShift, pfGShift, pfBShift, pfAShift :: Int8 | | | pfRLoss, pfGLoss, pfBLoss, pfALoss :: Int8 | | | pfColorKey :: Word32 | | | pfAlpha :: Word8 | |
|
| Instances | |
|
|
| data VideoInfo |
| Constructors | | VideoInfo | | | viHWAvailable :: Bool | | | viWMAvailable :: Bool | | | viBlitHW :: Bool | | | viBlitHWCC :: Bool | | | viBlitHWA :: Bool | | | viBlitSW :: Bool | | | viBlitSWCC :: Bool | | | viBlitSWA :: Bool | | | viBlitFill :: Bool | | | viVideoMem :: Int | | | viVideoFormat :: PixelFormat | |
|
| Instances | |
|
|
| data ModeList |
| Constructors | | AnyDimension | | | DimensionList [Rect] | |
| Instances | |
|
|
| getVideoSurface :: IO Surface |
|
| getVideoInfo :: IO VideoInfo |
|
| videoDriverName :: IO (Maybe String) |
|
| listModes :: Maybe PixelFormat -> [SurfaceFlag] -> IO ModeList |
|
| videoModeOK :: Int -> Int -> Int -> [SurfaceFlag] -> IO Int |
|
| setVideoMode :: Int -> Int -> Int -> [SurfaceFlag] -> IO Surface |
|
| updateRect :: Surface -> Rect -> IO () |
|
| updateRects :: Surface -> [Rect] -> IO () |
|
| flipSurface :: Surface -> IO Bool |
|
| setColors :: Surface -> [Color] -> Int -> IO Bool |
|
| setPalette :: Surface -> [PaletteFlag] -> [Color] -> Int -> IO Bool |
|
| setGamma :: Double -> Double -> Double -> IO Bool |
|
| getGammaRamp :: IO (Bool, [(Word16, Word16, Word16)]) |
|
| setGammaRamp :: [(Word16, Word16, Word16)] -> IO Bool |
|
| mapRGB :: PixelFormat -> Color -> IO Word32 |
|
| mapRGBA :: PixelFormat -> Color -> IO Word32 |
|
| getRGB :: PixelFormat -> Word32 -> IO Color |
|
| getRGBA :: PixelFormat -> Word32 -> IO Color |
|
| createRGBSurface :: [SurfaceFlag] -> Int -> Int -> Int -> Word32 -> Word32 -> Word32 -> Word32 -> IO Surface |
|
| createRGBSurfaceFrom :: Ptr () -> Int -> Int -> Int -> Int -> Word32 -> Word32 -> Word32 -> Word32 -> IO Surface |
|
| freeSurface :: Surface -> IO () |
|
| lockSurface :: Surface -> IO Bool |
|
| unlockSurface :: Surface -> IO () |
|
| loadBMP :: String -> IO Surface |
|
| saveBMP :: Surface -> String -> IO Bool |
|
| setColorKey :: Surface -> [SurfaceFlag] -> Word32 -> IO Bool |
|
| setAlpha :: Surface -> [SurfaceFlag] -> Word8 -> IO Bool |
|
| setClipRect :: Surface -> Rect -> IO () |
|
| getClipRect :: Surface -> IO Rect |
|
| convertSurface :: Surface -> PixelFormat -> [SurfaceFlag] -> IO Surface |
|
| blitSurface :: Surface -> Maybe Rect -> Surface -> Point -> IO Int |
|
| fillRect :: Surface -> Maybe Rect -> Word32 -> IO Bool |
|
| displayFormat :: Surface -> IO Surface |
|
| displayFormatAlpha :: Surface -> IO Surface |
|
| data Cursor |
|
|
| data CursorState |
| Constructors | | CURSOR_QUERY | | | CURSOR_IGNORE | | | CURSOR_DISABLE | | | CURSOR_ENABLE | |
| Instances | |
|
|
| warpMouse :: Point -> IO () |
|
| createCursor :: [Bool] -> [Bool] -> Size -> Point -> IO Cursor |
|
| freeCursor :: Cursor -> IO () |
|
| setCursor :: Cursor -> IO () |
|
| getCursor :: IO Cursor |
|
| showCursor :: CursorState -> IO CursorState |
|
| data GLAttr |
| Constructors | | GL_RED_SIZE | | | GL_GREEN_SIZE | | | GL_BLUE_SIZE | | | GL_ALPHA_SIZE | | | GL_BUFFER_SIZE | | | GL_DOUBLEBUFFER | | | GL_DEPTH_SIZE | | | GL_STENCIL_SIZE | | | GL_ACCUM_RED_SIZE | | | GL_ACCUM_GREEN_SIZE | | | GL_ACCUM_BLUE_SIZE | | | GL_ACCUM_ALPHA_SIZE | | | GL_STEREO | | | GL_MULTISAMPLEBUFFERS | | | GL_MULTISAMPLESAMPLES | |
| Instances | |
|
|
| glGetAttribute :: GLAttr -> IO (Bool, Int) |
|
| glSetAttribute :: GLAttr -> Int -> IO Bool |
|
| glSwapBuffers :: IO () |
|
| Produced by Haddock version 0.7 |