[HOpenGL] Re: GL.BufferObjects patch request (1-liner)
Neal Alexander
relapse.dev at gmx.com
Tue Apr 28 17:42:55 EDT 2009
Sven Panne wrote:
> I am not 100% convinced that there is no way around this using
> withMappedBuffer (e.g. by passing the pointer from the wrapped action to
> another thread)
The ptr gets globally unmapped by withMappedBuffer though.
> Although I'm really striving for API minimality, anticipating all possible uses of an API is really hard. Having 2
> ways of achieving things is not nice, but it is probably the safest thing to
> do here. *sigh*
>
Yea.
Maybe you could do like the ByteString library and export things like
this from an "internals" module.
http://hackage.haskell.org/packages/archive/bytestring/0.9.1.4/doc/html/Data-ByteString-Internal.html
Or just separate the package into a direct C-API translation (with some
haskell style error handling), then build a higher level haskell API
ontop of it (withXXXX functions, added type safety, etc) - maybe even as
a seperate hackage library.
More information about the HOpenGL
mailing list