setTessWindingRule

HC Graphics Drawing filled shapes setTessWindingRule
TessEnd Surface

setTessWindingRule rulenr


command to set the winding rule for the next tesselations to rulenr. The rulenr can be any of the following values:

0 GLU_TESS_WINDING_ODD
1 GLU_TESS_WINDING_NONZERO
2 GLU_TESS_WINDING_POSITIVE
3 GLU_TESS_WINDING_NEGATIVE
4 GLU_TESS_WINDING_ABS_GEQ_TWO

Example:

to tessstar
	cs
	ht
	image=loadImage "bricks.png
	tex=Texture image
	enTex
	WindowMode
	setPC "white
	back 300
	setTessWindingRule 1
	TessStart
	setTexXY 0.4 1    fd 600  rt 180-72/2
	setTexXY 1   0.2  fd 600  rt 180-72/2
	setTexXY 0   0.5  fd 600  rt 180-72/2
	setTexXY 1   0.8  fd 600  rt 180-72/2
	setTexXY 0.4 0    fd 600  rt 180-72/2
	TessEnd
end

Reference:

TessEnd Surface