[Pharo-project] [squeak-dev] Need your opinion: What is most appealing form for GL function bindings?

Igor Stasenko siguctua at gmail.com
Sun May 23 06:36:02 UTC 2010


On 23 May 2010 04:37, Kevin Kelley <kevin at kelleysoft.com> wrote:
> On Fri, 21 May 2010 04:27:20 -0500, Igor Stasenko <siguctua at gmail.com>
> wrote:
>
>> readPixels_x: "in" x y: "in" y width: "in" width height: "in" height
>> format: "in" format type: "in" type pixels: "out" pixels
>>        "This method was automatically generated from OpenGL specs"
>>        "See http://squeaksource.com/OpenGLSpecs for details"
>>        <primitive: #primitiveNativeCall module: #NativeBoostPlugin>
>
> Hey, Igor,
>
> Just wanted to register appreciation for this GL spec parser, it looks good
> and I think it'll be useful.  I'm trying to get GL working on the COLA
> platform (smalltalk syntax, generates to native code), and I think I can use
> your code to generate the bindings with the syntax I need.
>
Be my guest. You could also take a look, how i handling the moving the
native code between
calls which may cause GC activity in Squeak.
There is a special gate function, which makes sure that if GC
relocated native code,
it will return from call to correct renewed address.
It quite simple thing, and allows a native code to be the subject of
garbage collection,
without a need for special care, when you no longer using it.
See NativeBoostWin32>>generateCallgateCode in NativeBoost-Win32 package.

> Cheers!
>
> Kevin Kelley
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list