<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">wglGetCurrentContext() does not create a context, it merely answers the context that was most recently made current. &nbsp;<div><br></div><div>Take a peek in&nbsp;sqWin32OpenGL.c in the B3DAcceleratorPlugin source code. &nbsp;It's hiding a lot of tedious stuff; "creating a context" is about a lot more than wrapping a single API call. &nbsp;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).</div><div><br></div><div>Cheers,</div><div>Josh<br><div><br></div><div><br><div><div>On Jun 7, 2010, at 8:50 PM, askoh wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
I am curious why Croquet uses a primitive to create an opengl context
<br>instead of a straight call to wglGetCurrentContext()?
<br>Aik-Siong
<br>&nbsp;
<br>On Mon, 7 Jun 2010 13:28:11 -0700 (PDT), "Josh Gargus [via Smalltalk]" &nbsp;wrote:
<br>Ah, you've got me there (I don't really use WGL directly). &nbsp;You should
<br>be able to do that without any new primitives.
<br>&nbsp; &gt;
<br>&nbsp; &gt; Cheers,
<br>&nbsp; &gt; Josh
<br>&nbsp; &gt;
<br><br>
<br><hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/OpenCL-and-OpenGL-interop-tp2246017p2246830.html">Re: OpenCL and OpenGL interop</a><br>
Sent from the <a href="http://forum.world.st/Squeak-Dev-f45488.html">Squeak - Dev mailing list archive</a> at <a href="http://Nabble.com">Nabble.com</a>.<br>
<br></blockquote></div><br></div></div></body></html>