[squeak-dev] Re: OpenCL and OpenGL interop
Josh Gargus
josh at schwa.ca
Tue Jun 8 05:59:40 UTC 2010
wglGetCurrentContext() does not create a context, it merely answers the context that was most recently made current.
Take a peek in sqWin32OpenGL.c in the B3DAcceleratorPlugin source code. It's hiding a lot of tedious stuff; "creating a context" is about a lot more than wrapping a single API call. The B3D plugin nicely abstracts this away so you can use the same setup code across platforms (and can also use Direct 3D as a backend, although Croquet-OpenGL doesn't use this).
Cheers,
Josh
On Jun 7, 2010, at 8:50 PM, askoh wrote:
> I am curious why Croquet uses a primitive to create an opengl context
> instead of a straight call to wglGetCurrentContext()?
> Aik-Siong
>
> On Mon, 7 Jun 2010 13:28:11 -0700 (PDT), "Josh Gargus [via Smalltalk]" wrote:
> Ah, you've got me there (I don't really use WGL directly). You should
> be able to do that without any new primitives.
> >
> > Cheers,
> > Josh
> >
>
>
> View this message in context: Re: OpenCL and OpenGL interop
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100607/99bb528a/attachment.htm
More information about the Squeak-dev
mailing list
|