Not strictly a Java2D question, but I thought I'd ask here because there
are a lot of knowledgeable people who've worked on the OpenGL 2D pipeline.

I'm writing an application in JOGL and need to draw some curved 2D
shapes (with an orthographic view, so they will appear to overlay the
rest of the scene).  Effectively, I want to emulate the
Graphics2D.draw(Shape) and Graphics2D.fill(Shape).  Some of these shapes
will be defined by connected Bezier curves (similar to a GeneralPath).
What's the best way to render such a shape in OpenGL?  I can subdivide
each of the Bezier segments into smaller segments until the resolution
is small enough to approximate it with straight line segments - but that
would lead to an extremely tessellated shape.  And how would I emulate a
stroked outline?  Convert the outline to a Shape first?  How did the
Java2D team tackle this?

Mark McKay

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to