[squeak-dev] Re: OpenGL into morphic ala lumiere?

Lawson English lenglish5 at cox.net
Thu Apr 1 23:19:13 UTC 2010


Andreas Raab wrote:
> On 3/25/2010 8:25 AM, Lawson English wrote:
>> More than likely, this is way too advanced for moi, but I spent about an
>> hour rummaging through the Lumiere code for Pharo and just couldn't grok
>> how the OpenGL rendering is directed to a morph instead of to raw
>> coordinates on the main window. Is there some special property of Pharo
>> that allows this kind of thing, or is there some relatively simple way
>> in Squeak to direct OGL drawing to a morphic surface/canvas/thingie so
>> it renders inside the boundaries of the morph when moved?
>
> There is absolutely nothing to it. All you need is something like here:
>
> MyMorph>>drawOn: aCanvas
>
[...]
 
That WAS easy. Is there a simple way to implement the c-like syntax you 
did for Cobalt? I'm working on recreating the HE tutorial series  and 
many people will balk at the with:with:with:with:   syntax, I'm afraid

Lawson




More information about the Squeak-dev mailing list