Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Buffer = Buffer {
- resource :: !(Resource Buffer_)
- status :: !(IORef BufferStatus)
- viewAllowedMappings :: !AccessFlags
- viewSize :: !Int
- ordIndex :: !Unique
- data BufferStatus = BufferStatus {}
- newtype Buffer_ = Buffer_ GLuint
- data AccessFlags
- data MapFlag
Documentation
Buffer data type.
Buffer | |
|
data AccessFlags Source
Describes a style of mapping.
ReadAccess | The mapping can be read from. |
WriteAccess | The mapping can be written to. |
ReadWriteAccess | Both reading and writing can be done. |
NoAccess | No access; you cannot map the buffer at all after creation. |
Additional mapping flags.
UnSynchronized | Map the buffer without synchronization. You will have to use synchronization primitives to make sure you and OpenGL won't be using the buffer at the same time. |
ExplicitFlush | If set, you need to explicitly flush ranges of
the mapping after you have modified them, with
Explicit flushing can be useful when you map a large buffer but don't know beforehand how much of that buffer you are going to modify. |