Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] GL Support in SWT. Why the paradigm shift?

Hi,

  Is it possible to turn to fullscreen mode?
  I was using LWJGL with its Display class but shifted to SWT.
  When will this be possible?

  Thank you in advance.

  Regards,
    Tiago

> Hi Ivan, thanks for looking at the GL stuff, I hope the Fox port isn't
>too difficult ;)
>
>> I'm just curious as to why you changed from the more "orthogonal"
>> GLContext-based OpenGL support, to the GLCanvas based one?
>> While it means less work for SWT/Fox (GLCanvas will map nicely to
>> FXGLCanvas, it seems), and while I understand that using GL on Image
>> is rarely a good idea because X11 pixmaps + GLX means software GL, the
>> GLCanvas thing does not allow to draw with GL on arbitrary
>> Composite/Canvas widget, as it used to be.
>
>  Under X, the pixel format is tied to the visual used to create the
>window you're going to draw on.  So, we needed some sort of GLCanvas
>widget regardless.  Since I don't have any control over the visuals used
>by random Composite widgets, I thought it would be better to leave that
>functionality out, at least for now.
>
>  It's similar for offscreen images where you need to have a GLXPixmap,
>but I want to understand the options better before introducing a
>GLImage.
>
>  -Billy


Back to the top