Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Caramia.Buffer.Internal
- 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 = UnSynchronized
Documentation
Buffer data type.
Constructors
Buffer | |
Fields
|
data BufferStatus Source
Constructors
BufferStatus | |
data AccessFlags Source
Describes a style of mapping.
Constructors
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.
Constructors
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. |