I have a trouble : I have an array with any elements, I just know the number of elements is parity and element can not be 0.
With this I must do my own line style.
I don’t understand how to translate my array into a pattern for command “glLineStipple”.
Thanks for any help.
I am not sure what you mean here, but the glLineStipple is simple, the mask specifiec the pattern, look at the binary value of the pattern, the value 0x00ff for example is 0000000011111111 in binary so that will be the pattern, the factor value is just the number of times, each bit will be repeated that number of times.
Was that what you was looking for or did I missunderstand you somewhere ?