Kumar K
01-18-2007, 09:56 PM
we have a requirment to fill the stripple lines with two alternative colours , all the gaps in the stripple line should be filled with different colour. In the end it should look like a solid line with two colours. However this alternative colour setting is not aviable in stripple patterns. To achive this we are rendering the same stripple with ~pattern using different colour.
Comming to my problem if i have million points representing the line stripple i have to repeate this loop twice(for gap colour line) which is expensive, or i can render two lines after every two points one after other with different colour this however increases my glBegin() and glEnd() steps.
Can any body advise me what should be the optimal approach?
Comming to my problem if i have million points representing the line stripple i have to repeate this loop twice(for gap colour line) which is expensive, or i can render two lines after every two points one after other with different colour this however increases my glBegin() and glEnd() steps.
Can any body advise me what should be the optimal approach?