[Haskell-cafe] Calling OpenGL functions from multiple threads

Thomas Davie tom.davie at gmail.com
Sun Feb 12 08:12:07 CET 2012

Just for reference – glX functions are not OpenGL functions at all, they're also not extensions to OpenGL, so I'd be very surprised if they could be got at from the Haskell GL bindings.  glX is instead a library for creating OpenGL contexts (and working with them) for X11.

As the Haskell bindings for OpenGL are for OpenGL, not X windows, they don't support this call.  Though another package (not sure which, because it doesn't apply on my platform) may well include it.

if (*ra4 != 0xffc78948) { return false; }

On 12 Feb 2012, at 03:03, Clark Gaebel wrote:

> Do the OpenGL bindings on Hackage expose anything like glXMakeCurrent [1]? I need to use OpenGL functions from multiple threads (note: not at once, I protect it with an MVar), but that's forbidden in extension-less OpenGL.
> Thanks,
>   - clark
> [1] http://www.talisman.org/opengl-1.1/Reference/glXMakeCurrent.html
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120212/28550b18/attachment.htm>

More information about the Haskell-Cafe mailing list