If I want an editor that accepts "points" of a minimum of three (a triangle) and I just add some points first, like this:
how can I mathematically connect these corners (points) into an object of multiple triangles? so amount of triangles looks like something like this, by connecting nearest point:
and then later render this and also being able to define what it is and check for collisions on this ground, so I can create more than Rectangle based "bricks" on a Platformer for example. Also being able to texturize the whole object without it looking ugly.
Any ideas? Or what is this called in game programming?