Hello to all,
I want to render a polygon (unknown number of edges;). Therefore I am currently using draw3DLine(...). That works without any problems. But I've got a problem, since I want to paint "into" the polygone. With different colors fore each pixel....
has anyone an idea, how i should do this...
Polygon and Color
There are ways to triangulate your polygon and draw it as a set of triangles. If your polygon is convex, it is very simple:
Otherwise you can look at following page:
http://www.vterrain.org/Implementation/ ... ulate.html
Otherwise you can look at following page:
http://www.vterrain.org/Implementation/ ... ulate.html