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:
Moderator: Coders of Rage
Code: Select all
collision {
(0,0);(12,12);(34,2)
(23,45);(23,4);(5,76);(1,2)
}
Code: Select all
struct Shape {
Shape* next; // pointer to next shape in the linked list
Vec2* vertices; // heap array of vertex data
int n; // number of vertices on this shape
};
// whatever manages the shapes
class AllShapes {
Shape* shapes; // start of the linked list
};