[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] SWT and OpenGL

Guys,
There is a neat Source Forge project called LWJGL (Lightweight Java Game
Library) whose creators aim at providing bindings for the latest OpenGL
spec & extensions (and for OpenAL for that matter) - 
http://java-game-lib.sourceforge.net

The library is mostly oriented towards games so it is full screen only.
But I believe it won't be very hard to tweak it a bit to support OpenGL
in windowed mode too.

It already has ports for Windows & Linux and I believe a Mac port is on
the way.

The downsides resulting from the high performance-orientation of the
library are that it requires 1.4 level jre (for the direct buffers'
stuff) and it uses pointers (as integers) so it cannot qualify as a safe
code.

Still, this project looks very promising so I think that if OTI goes for
reinventing a third OpenGL binding (apart from LWJGL & JauSoft's), maybe
it is a good idea to bridge SWT with this lib instead..

There are lots of discussions about this library at www.javagaming.org

/Ivan

> -----Original Message-----
> From: Grant Gayed [mailto:Grant_Gayed@xxxxxxx]
> Sent: Thursday, December 05, 2002 10:46 PM
> To: platform-swt-dev@xxxxxxxxxxx
> Subject: RE: [platform-swt-dev] SWT and OpenGL
> 
> 
> It's internal for now.  It probably will ultimately appear on a page
> linked
> through the swt page, and there will be an announcement made when it
goes
> up.
> 
> Grant
> 
> 
> 
> |---------+---------------------------------->
> |         |           "Rob Hughes"           |
> |         |           <rhughes@xxxxxxxxxxxxxx|
> |         |           >                      |
> |         |           Sent by:               |
> |         |           platform-swt-dev-admin@|
> |         |           eclipse.org            |
> |         |                                  |
> |         |                                  |
> |         |           12/05/2002 03:20 PM    |
> |         |           Please respond to      |
> |         |           platform-swt-dev       |
> |         |                                  |
> |---------+---------------------------------->
>
>-----------------------------------------------------------------------
> -----------------------------------|
>   |
> |
>   |        To:      <platform-swt-dev@xxxxxxxxxxx>
> |
>   |        cc:
> |
>   |        Subject: RE: [platform-swt-dev] SWT and OpenGL
> |
>
>-----------------------------------------------------------------------
> -----------------------------------|
> 
> 
> 
> Is there a project page for this or a cvs repository?
> 
> Rob
> 
> -----Original Message-----
> From: platform-swt-dev-admin@xxxxxxxxxxx
> [mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Grant Gayed
> Sent: Thursday, December 05, 2002 11:37 AM
> To: platform-swt-dev@xxxxxxxxxxx
> Subject: Re: [platform-swt-dev] SWT and OpenGL
> 
> 
> 
> Lance,
> 
> We have something in the works.  A project has been created that
> provides bindings for OpenGL functions and a set of examples similar
to
> the swt control example.  We plan to release these in the near future
in
> a separate experimental package that won't be part of the main swt
> package.
> 
> Grant
> 
> 
> 
> |---------+---------------------------------->
> |         |           "Lance Good"           |
> |         |           <good@xxxxxxxx>        |
> |         |           Sent by:               |
> |         |           platform-swt-dev-admin@|
> |         |           eclipse.org            |
> |         |                                  |
> |         |                                  |
> |         |           12/04/2002 03:00 PM    |
> |         |           Please respond to      |
> |         |           platform-swt-dev       |
> |         |                                  |
> |---------+---------------------------------->
> 
>
>-----------------------------------------------------------------------
> -----------------------------------|
>   |
> |
>   |        To:      <platform-swt-dev@xxxxxxxxxxx>
> |
>   |        cc:
> |
>   |        Subject: [platform-swt-dev] SWT and OpenGL
> |
> 
>
>-----------------------------------------------------------------------
> -----------------------------------|
> 
> 
> 
> Hi,
> 
> I am an SWT new-b so apologies if this is redundant.  I looked through
> the SWT FAQ, the eclipse.tools archive, and this list's archives and
> couldn't find any discussion on combining SWT and OpenGL.  I did see a
> mention of OpenGL on one of the SWT developer pages under "2.1
Developer
> Effort - Milestone 2 (October 18, 2002)" but couldn't find any further
> discussion.
> 
> So I'm wondering if someone has thought of a cross-platform way to
> combine SWT with OpenGL.  I might be able to make a quick hack that
> works specifically on Windows but I'd like to have cross-platform if
> possible. I've looked at Gl4Java (www.jausoft.com/gl4java.html) but
the
> primary canvas is currently provided as an AWT component.  I haven't
> looked at how much work it would be to modify this to use an SWT
> component.
> 
> Is there an existing solution for OpenGL and SWT?  Alternately, does
> someone have one in the works?
> 
> Thanks,
> Lance
> 
> (Note: I did consider posting to eclipse.tools but decided this is
> potentially more of a general SWT implementation issue)
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> 
> 
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> 
> 
> 
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev