OpenGL-3.0.3.0: A binding for the OpenGL graphics system

Copyright(c) Sven Panne 2002-2019
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Rendering.OpenGL.GL.BufferObjects

Contents

Description

This module corresponds to section 2.9 (Buffer Objects) of the OpenGL 2.1 specs.

Synopsis

Buffer Objects

data BufferObject Source #

Instances
Eq BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

Ord BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

Show BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

ObjectName BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

GeneratableObjectName BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

CanBeLabeled BufferObject Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.BufferObjects

Binding Buffer Objects

Handling Buffer Data

Mapping Buffer Objects

withMappedBuffer :: BufferTarget -> BufferAccess -> (Ptr a -> IO b) -> (MappingFailure -> IO b) -> IO b Source #

Convenience function for an exception-safe combination of mapBuffer and unmapBuffer.

Indexed Buffer manipulation