Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Implementation of Graphics2D based on OpenGL


What about just improving the 2D support in SWT? The current level of support is minimal at best.  Steve recently suggested OpenGL as a means to improve 2D graphics:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=7075

Instead of trying to support the full AWT Graphics2D api, why not define one that can be satisfied by OpenGL without any extra effort.  Then, make this available to SWT clients.  Do you know what is the best way to proceed with this approach?  An OpenGL wrapper is nice, but it isn't the API you want to draw a UML diagram. Wrapping OpenGL in a friendly interface similar to Graphics2D is a good idea.  Preferably an interface that takes SWT Colors, Fonts, and Images.  Does anyone know how easy this would be?

Writing a "clean room" version of AWT is an interesting problem, but not one that helps the Eclipse Project.  Just my 2 cents.

-Randy



Jean-Daniel Fekete <Jean-Daniel.Fekete@xxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

06/07/2003 12:09 PM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-swt-dev] Implementation of Graphics2D based on OpenGL



Dear SWT developers,

I read with interest the threads on SWT port for Swing and believe that
sooner or later, some applications will need to mix components from both
worlds.

On the other side of mixing SWT and Swing, I would like to point out the
partial implementation of the Java2D interface in OpenGL called Agile2D.
 Creating an AWT compatible component under AWT requires implementing
the Graphics2D functions and managing events the AWT way so Agile2D is
just a small part of the big work required.

The original Agile2D site is http://www.cs.umd.edu/hcil/agile2d/index.shtml
I also keep a more up-to-date site with experimental extensions at:
http://www.lri.fr/~fekete/agile2d/

This implementation currently relies on some existing Graphics2D
internal implementations for managing images and fonts, but most of the
Graphics2D rendering functions are implemented on top of OpenGL.

I started to look at the current implementation of the OpenGL binding
for SWT and found it interesting but missing lots of important features,
such as querying for a specific configuration when creating OpenGL
buffers (# of stencil bits, depth buffer, etc.)

I cannot invest the time required to implement the full support of AWT
under SWT but if someone feels like following the AWT compatibility
path, I would be happy to help as much as possible.

--
 Jean-Daniel Fekete      Jean-Daniel.Fekete@xxxxxxxx
 INRIA Futurs, LRI               tel: +33 1 69156623
 Bat 490, Université Paris-Sud   fax: +33 1 69156586
 F91405 ORSAY Cedex, France

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top