[squeak-dev] porting Croquet to Squeak6.0 alpha...
bert at freudenbergs.de
Wed Mar 11 22:58:07 UTC 2020
On Wed, Mar 11, 2020 at 2:58 PM gettimothy via Squeak-dev <
squeak-dev at lists.squeakfoundation.org> wrote:
> btw, the glMatrixMode:mode method tells us that it was automatically
> by what? When? against what?
> glMatrixMode: mode
> *"This method was automatically generated."*
> "void glMatrixMode(GLenum mode);"
> <apicall: void 'glMatrixMode' (ulong) module: '#openGLLibraryName'>
> ^self externalCallFailed
> Is that "automatic generation" an example of fundamental work that must
> be done to make Croquet rock-n-roll?
The methods have been automatically generated from the OpenGL spec a long
time ago, yes. But you do not have to re-generate them.
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).
See my other reply re: getting OpenGL via FFI to work in 64 bits.
- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev