A Way to fill a Line loop

Hi to everyone,

I have a question: there is a way to fill a polygon drawn with a line loop?

Thanks!

Giuseppe

You have to divide the polygon into triangles (or triangle strips/fans) and render those.

Yes, i know this way, but when I try to draw a figure like a river or a lake, the point are placed in a way that I nedd to draw with a GL_TRIANGLE_FAN, but this method draw in a wrong way the 2 last point…

Excuse my English!

Byez

Gius

I can’t help you without a better explanation of what is going wrong.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.