PDA

View Full Version : Paint Engine Question



hypnotic401
4th December 2012, 16:07
Hello all,

I am implementing a QPaintEngine with my own backend. I was wondering, on a call from the painter to the engine to drawPolygon it passes in an array of points, are those points in order? I need to know because I am rendering the polygon in a proprietary openGL graphics engine.

wysota
4th December 2012, 17:28
They have to be in order as the order of points in a polygon matters. The same two sets of points in different order may give a completely different result (especially if the polygon is filled).

hypnotic401
4th December 2012, 18:24
Excellent just want I wanted to hear, I didn't want to make a false assumption and have things go awry! Now on to the tessellation of said polygon!