PDA

View Full Version : Hatch with OpenGL ?



tes
12-10-2000, 12:39 AM
Hatch with OpenGL ?

Has someone a good idea to fill an area (surrounded by lines), that is drawn witch OpenGL, with a free definable hatch?

In then moment I use GDI's CreateHatchBrush and ExtFloodFill, but it is very limited.
I have no control of line distance, only lines or nets are possible.

Maybe there is a solution witch stencil buffer ?

Thanks for every answer !
Robert
tes@tes.li

MikeC
12-10-2000, 05:18 AM
glPolygonStipple

tes
12-10-2000, 07:52 PM
Thanks to MikeC

...but, sorry no polygons, only independent lines.
...and hard to control line distance with a 32x32 pattern without a stretch factor.

It should be possible to start at point x,y and to fill with a hatch in every direction until it reaches a line (like ExtFloodFill).
Robert