Hatch with OpenGL ?

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 !


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).