How do generate Stipple pattern for polygon filling

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How do generate Stipple pattern for polygon filling

swami_india
I am new to JOGL programming. Now i m trying to fill polygon with different pattern like line filling(strip) or fly as in example http://www.felixgers.de/teaching/jogl/java/StipplePattern.java

Can any one tell me how can we generate for stipple pattern for different types of graphics like slant line filling polygon or any shape.

Regards,
Swami
Reply | Threaded
Open this post in threaded view
|

Re: How do generate Stipple pattern for polygon filling

gouessej
Administrator
Hi

This example uses JOGL 1 and is incomplete. I advise you to look at my dummy example here:
http://en.wikipedia.org/wiki/Java_OpenGL#Code_example

Then, just port the example of stipple pattern to JOGL 2 and incorporate it into my example. You just have to replace GL by GL2, it shouldn't be very hard.
Julien Gouesse | Personal blog | Website