[squeak-dev] OGLUnixX11LE >> glPixelStorei: with:

Levente Uzonyi leves at caesar.elte.hu
Sat May 9 10:19:06 UTC 2020


Hi Tim,

On Fri, 8 May 2020, gettimothy via Squeak-dev wrote:

> Hi folks,
> 
> I am stepping through the OpenGL example, getting my head wrapped around it.
> 
> First thing is in OGLUnix openGLLibraryName I had to make a change for Smalltalke osVersion   to handle 'linux-gnu'.
> 
> 
> 
> openGLLibraryName
> ^((Smalltalk osVersion = 'linux') | (Smalltalk osVersion = 'linux-gnu'))
> ifTrue: ['libGL.so.1']
> ifFalse: ['GL']
> 
> 
> 
> All well and good.
> 
> Also, as pre-amble, I am able to set debug level via primitive call with:
>
>             OpenGL primitiveSetVerboseLevel:5
> 
> with no exception/error.
> 
> 
> 
> My immediate concern is in OGLUnixX11LE >> glPixelStorei:with:
> 
>
>       glPixelStorei: pname with: param
> "This method was automatically generated."
> "void glPixelStorei(GLenum pname, GLint param);"
> <apicall: void 'glPixelStorei' (ulong long) module: '#openGLLibraryName'>
> ^self externalCallFailed
> 
> 
> That argument module:'#openGLLibraryName' smells like an error, as if it should have been replaced by something with   'libGL.so.1'
> 
> Well, I manually replaced it in that method with the same result.

IIRC the method is modified but the source code remains the same. If you 
click on the source button of the browser and choose decompile, you should 
see that the library name was replaced.


Levente

> 
> I downloaded the latest FFI-Examples package and the FFI-Unix-Examples is empty, so I cannot infer from that.
> 
> 
> Is there a way I can search the image for all the <apicall: pragmas ? I may be able to find one that works and start from there.
> 
> thanks in advance.
> 
> 
> 
> 
> 
> 
>


More information about the Squeak-dev mailing list