SDL, OpengL, etc (was: Squeak + Darwin)

Raab, Andreas Andreas.Raab at disney.com
Thu Apr 12 07:16:14 UTC 2001


Bert,

> > >So, by hook or by crook, I'd say that OpenGL support is coming.
> > 
> > See "OpenGL for Squeak": 
> > http://minnow.cc.gatech.edu/squeak/1759
> 
> Yeah, I tried to refactor this to allow the same protocol for 
> Win32 and X11, but no luck so far. That is, I did the refactoring,
> but now as soon as I call any OpenGL function via FFI Squeak crashes
> (seg fault) *sigh*. 
> 
> Besides, I'm not sure if it would even work the same way on 
> X. I think you can't just create a GL context for a window,
> because it has to have a GLX visual. 

Correct. But what you *can* do is to create a GL capable visual to begin
with. If you look at my old code for the VW/OpenGL wrapper (if you're lucky
it's still somewhere in the SGI pool) it created its own window to draw in.

> And then, I'm not sure if I can mix X11 drawing with GL drawing on
> the same drawable ...

This might not be a problem if you mix in the ExternalScreen primitives
appropriately (which might be hard to do without some sample code but I've
been thinking about it). If you have PBuffers available (IIRC, this is part
of GLX 1.3 but I'm uncertain if current XFree's support it) the
ExternalScreen stuff is *definitely* the way to go.

Cheers,
  - Andreas





More information about the Squeak-dev mailing list