<div dir="ltr"><div dir="ltr">On Wed, Mar 11, 2020 at 2:58 PM gettimothy via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div>btw, the glMatrixMode:mode method tells us that it was automatically generated.<br></div><div><br></div><div>by what? When? against what?<br></div><blockquote style="border:1px solid rgb(204,204,204);padding:7px;background-color:rgb(245,245,245)"><div><div>glMatrixMode: mode<br></div><div><b><u>"This method was automatically generated."</u></b><br></div><div>"void glMatrixMode(GLenum mode);"<br></div><div><apicall: void 'glMatrixMode' (ulong) module: '#openGLLibraryName'><br></div><div>^self externalCallFailed<br></div></div></blockquote><div><br></div><div>Is that "automatic generation"  an example of fundamental work that must be done to make Croquet rock-n-roll?<br></div><div><br></div><div>cheers,<br></div><div><br></div><div>tty</div></div></div></blockquote><div><br></div><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">The methods have been automatically generated from the OpenGL spec a long time ago, yes. But you do not have to re-generate them.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">There is, however, some magic involved to get these methods bound to the correct openGLLibraryName. At runtime, when you instantiate an OpenGL object, the magic will actually create versions of these methods that have the right calling convention (instead of "apicall") and the right library name (e.g. 'libGL.so.1' on Linux).<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"></div><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">See my other reply re: getting OpenGL via FFI to work in 64 bits.</div></div><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">- Bert -</div></div></div>