[squeak-dev] Re:NativeBoost and NBOpenGL on Mac?

Hans-Martin Mosner hmm at heeg.de
Wed Jan 11 18:56:33 UTC 2012


Am 11.01.2012 19:18, schrieb Bert Freudenberg:
> ...
> This primitive encapsulates the platform-dependent part of creating an OpenGL rendering context. OpenGL itself is platform-independent, but creating a window is not. The plugin has code for Mac, Windows, and Unix.
>
> So this creates a new borderless window that gets embedded in the "big" main window. It also creates an OpenGL context for that window and makes it current. After calling the primitive you can use any OpenGL commands to draw directly into it using the hardware renderer. I don't see a good reason why you would not want to use it.
>
> - Bert -
>
I'm currently also experimenting with this (under Linux) and it looks like this does not fully work on my system - the
OpenGL output seems to be displayed for a very short moment, and then only teh Squeak desktop is visible again.
Of course, it's nice to have the platform-dependent part within the primitive, but at least for Windows and Linux/X11
creating an OpenGL context is not really difficult, so since we already have platform-dependent OpenGL subclasses
anyway, there is no strong reason to keep the context creation stuff in primitive code.

Cheers,
Hans-Martin



More information about the Squeak-dev mailing list