Extension classes that allows for using OpenGL drawing using lightweight figures from the DEF and Draw2D extension plugins.

Lightweight figure rendering can be extremely slow. A lot of rendering to external buffers, transfer of data back from the video card, bring the bytes in Java land, set to an image and then have the lightweight framework draw that image (ie sending the bytes back to the video card). As you can imagine, this will be a very time-consuming process, so don't expect wonderful framerates from this process.

Each figure has the option of creating a new GL context or sharing one. Ideally you will share the context if you have more than one of these on your Draw2D/GEF window. Since it is likely that your window will be relatively small, it would be worthwhile to implement a culling process that removes features that are smaller than a single pixel in size.

Implementation Notes

The following features are not implemented currently: