[squeak-dev] Re:NativeBoost and NBOpenGL on Mac?
lenglish5 at cox.net
Wed Jan 11 19:10:00 UTC 2012
[pharo list added back in for real this time]
Would it be best to have a VM primitive that actually gives this info in
a cross-platform way since it is going to be more and more useful as
time goes on?
On 1/11/12 11:56 AM, Hans-Martin Mosner wrote:
> 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.
More information about the Squeak-dev