Hi,
I've managed to get dirty rects going in my software engine but I would like to create a system which optimises a linked list of rectangles so that there are as few rects as possible, and that they are as small as possible.
Does anyone have any source I can look at to achieve this on a list of already available rectangles? A kind of optimization pass.
This isn't an easy subject and my efforts have been fruitless.
I've managed to get dirty rects going in my software engine but I would like to create a system which optimises a linked list of rectangles so that there are as few rects as possible, and that they are as small as possible.
Does anyone have any source I can look at to achieve this on a list of already available rectangles? A kind of optimization pass.
This isn't an easy subject and my efforts have been fruitless.