haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Graphics.GenericBuffer

Description

Generic buffer management

Generic buffers are unaccelerated buffers that can be used with all devices that support them with the same API (contrary to accelerated buffers)

Generic buffers are called "dumb buffers" in original terminology

Synopsis

Documentation

createGenericBuffer :: MonadIO m => Handle -> Word32 -> Word32 -> Word32 -> Word32 -> Flow m '[GenericBuffer, ErrorCode] Source #

Create a generic buffer

destroyGenericBuffer :: MonadIO m => Handle -> GenericBuffer -> Flow m '[(), ErrorCode] Source #

Destroy a generic buffer