EclipseCon 2007 March 5-8, Santa Clara California





GL2D: Overhauling Draw2D's graphics engine with OpenGL

Thomas Crockett (JPL)

· Short Talk

Wednesday, 14:30, 10 minutes | Room 210

7
·
8
·
9
·
10
·
11
·
12
·
13
·
14
·
15
·
16
·
17
·
18
·
19

taken by the rovers, either as individual images or stitched mosaics composed of potentially hundreds of images. We use GEF to display our images and allow users to place target markers on points of interest therein. We wanted to give the users the ability to smoothly zoom in and out of a mosaic, allowing them to "fly" around the image in a Google Earth-style animated fashion. We quickly discovered, however, that the SWTGraphics which Draw2D uses by default was incapable of rendering scaled images fast enough to give the glassy-smooth transitions we were looking for, especially on the Mac and Linux platforms, which we must support. I decided to try implementing Draw2D's Graphics interface using OpenGL drawing routines, and swap this into the GEF/Draw2D framework, so that we could have our smooth animations of scaled images without losing the power of GEF for the target interaction layer. This talk discusses the approach I took to replacing Draw2D's graphics engine with an OpenGL core (without modifying the Draw2D plugin itself), as well as the several snags I encountered along the way to a successful implementation.

Floor Plan

Gold sponsors

Ingres logo

BEA logo

IBM logo

Business Objects logo

Klocwork logo

Windriver logo

Red Hat logo

Actuate logo

Silver sponsors

Compuware logo

Sybase logo

Google logo

Nexaweb

Activegrid

Genuitec

Instantiations

Cloudsmith

Code Gear

ACCESS

Oracle

Telelogic

Innoopract logo

Lynux Works

Media sponsors

Eclipse Magazine logo

GoingtoMeet.com logo

Methods and Tools logo

Eclipsezone logo

Addison-Wesley logo

Eclipse Magazin logo

Embedded Computing logo

SD Times logo

Enterprise Open Source logo

ACM Queue logo

TheServerSide Java Symposium

Eclipse Review logo

Software Test & Performance logo

Eclipse Developers Journal logo

Eclipse Source logo