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

gettimothy gettimothy at zoho.com
Fri May 8 19:23:48 UTC 2020


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.



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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200508/c0b2615b/attachment.html>


More information about the Squeak-dev mailing list