[squeak-dev] <CDECL kerfuffled on OpenGL. was (Re: OGLUnixX11LE >> glPixelStorei: with:

Beckmann, Tom Tom.Beckmann at student.hpi.uni-potsdam.de
Sun May 10 19:45:03 UTC 2020


Could you describe the actual problem you're currently facing? If you successfully got a triangle to display, you're most likely good to go. If you were trying to use an OpenGL Extension method (typically recognizable by an ARB or EXT suffix) you will go through the OGLExtManager, which has to resolve function pointers to extension methods at runtime. This might be another source of problems, but for regular OpenGL 1 usage for immediate mode drawing (glVertex... and friends) you should be good to go once the first triangle has popped up :)

Best,
Tom
________________________________________
From: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> on behalf of gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, May 10, 2020 9:33:21 PM
To: squeak-dev
Subject: [squeak-dev] <CDECL kerfuffled on OpenGL. was (Re: OGLUnixX11LE >> glPixelStorei: with:

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.

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