[squeak-dev] <CDECL kerfuffled on OpenGL. was (Re: OGLUnixX11LE >> glPixelStorei: with:
Levente Uzonyi
leves at caesar.elte.hu
Sun May 10 20:04:35 UTC 2020
On Sun, 10 May 2020, gettimothy via Squeak-dev wrote:
> Ok, progress....
> SystemNavigation default browseAllSelect: [:m| m pragmas notEmpty] localToPackage: #OpenGL
>
> SystemNavigation default browseAllSelect: [:m| m primitive isZero and: [m pragmas notEmpty]] localToPackage:#OpenGL
>
>
>
> Its only showing primitive 120, it doesn't recognize the <apicall:module> as a pragma.
FFI calls are not pragmas. They support different syntax, so they are
language extensions.
Levente
>
> Here is an example of it not being recognized as a pragma vs one that is:
>
> Pragma allNamed:#generated in:FFITestPoint2
>
> Pragma allNamed:#apicall:module: in:OpenGL
>
>
>
> Reading the class comment of OGLExtManager now trying to grok what's going wrong. It has some code to rewrite a method behind the scenes.
>
>
> Whatever is rewriting the methods based on the <apicall:module:> pragma probably cannot see it.
>
> Or, maybe I am completely in the wrong ballpark.
>
> cool code, though. (:
>
>
>
>
>
More information about the Squeak-dev
mailing list
|