|
Graphics.Rendering.OpenGL.GL.BufferObjects | Portability | portable | Stability | provisional | Maintainer | sven.panne@aedion.de |
|
|
|
|
|
Description |
This module corresponds to section 2.9 (Buffer Objects) of the OpenGL 1.5
specs.
|
|
Synopsis |
|
|
|
|
Object Names
|
|
class ObjectName a where |
An ObjectName corresponds to the general OpenGL notion of an explicitly
handled object name, e.g. a display list name, a texture object name, a
buffer object name, etc.
| | Methods | genObjectNames :: Int -> IO [a] | | deleteObjectNames :: [a] -> IO () | | isObjectName :: a -> IO Bool |
| | Instances | |
|
|
Buffer Objects
|
|
newtype BufferObject |
Constructors | | Instances | |
|
|
Binding Buffer Objects
|
|
data BufferTarget |
Constructors | ArrayBuffer | | ElementArrayBuffer | |
| Instances | |
|
|
bindBuffer :: BufferTarget -> StateVar (Maybe BufferObject) |
|
arrayBufferBinding :: ClientArrayType -> GettableStateVar (Maybe BufferObject) |
|
Handling Buffer Data
|
|
data BufferUsage |
Constructors | StreamDraw | | StreamRead | | StreamCopy | | StaticDraw | | StaticRead | | StaticCopy | | DynamicDraw | | DynamicRead | | DynamicCopy | |
| Instances | |
|
|
bufferData :: BufferTarget -> StateVar (GLsizeiptr, Ptr a, BufferUsage) |
|
data TransferDirection |
Constructors | ReadFromBuffer | | WriteToBuffer | |
| Instances | |
|
|
bufferSubData :: BufferTarget -> TransferDirection -> GLintptr -> GLsizeiptr -> Ptr a -> IO () |
|
Mapping Buffer Objects
|
|
data BufferAccess |
Constructors | ReadOnly | | WriteOnly | | ReadWrite | |
| Instances | |
|
|
data MappingFailure |
Constructors | MappingFailed | | UnmappingFailed | |
| Instances | |
|
|
withMappedBuffer :: BufferTarget -> BufferAccess -> (Ptr a -> IO b) -> (MappingFailure -> IO b) -> IO b |
|
bufferAccess :: BufferTarget -> GettableStateVar BufferAccess |
|
bufferMapped :: BufferTarget -> GettableStateVar Bool |
|
Produced by Haddock version 0.8 |