wingo
11-13-2008, 08:37 AM
I'm trying to render a polygon defined by five points that change depending on the user's view of the scene.
Unfortunately these points sometimes get out of order and the polygon clips itself.
Instead of going from points 1>2>3>4>5 it will do something like 2>1>3>4>5.
Does OpenGL have a function that will order these points in the correct way to make a solid polygon?
(If so, does it also apply to texture coordinates?)
Unfortunately these points sometimes get out of order and the polygon clips itself.
Instead of going from points 1>2>3>4>5 it will do something like 2>1>3>4>5.
Does OpenGL have a function that will order these points in the correct way to make a solid polygon?
(If so, does it also apply to texture coordinates?)