Question on storing n sided polygon data
Posted: Mon Mar 29, 2010 1:19 pm
Right, so the game that I am building a map editor for has a section like so
where each lines represents a series of coordinates that make up a polygon. Now, reading in this data is fine, but I am wondering on how I am going to store it. I recently started things like linked lists in my C++ class, and they seem to be a good candidate, but if I need to have multiple polygons, then I would have to make an array of linked lists, which seems like a huge headache...
What do guys recommend?
*note*: there is no definite size to anything here, so static stuff wont help D:
Code: Select all
collision {
(0,0);(12,12);(34,2)
(23,45);(23,4);(5,76);(1,2)
}
What do guys recommend?
*note*: there is no definite size to anything here, so static stuff wont help D: