I didn’t know where to put this as it is a general OpenGL question so here it is.
I am writing a program that will cheks the system hardware for OpenGL compatibility and accordingly loads either a Java2D or an OpenGL renderer, now my question is this, I am allowing the user to create a java.awt.Polygon and add it to the canvas to be rendered. in the Java2D version this is easy, but the user could very well define a concave polygon that will not look right in the OpenGL renderer. I tried using GL_LINE_LOOP
, but it really needs to be filled. my question is this: Is there an algorythm that will let me create mutiple convex polygons from one arbitrary concave polygon? :-\