Common line-drawing function
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
|Game:||Broken Sword 2|
The Broken Sword 2 engine has always had a line drawing function. It would be nice if this could be made a common function so that other engines (e.g. GOBLINS) could use it as well. I just rewrote the function to make this kind easier; the patch simply moves that new function.
Since each engine has its own ideas of how to draw to the screen - particularly if they handle screen dirtying - the function works by using a callback to plot each individual point.
The patch changes the BS2 engine to use the new function.
I'm not sure if util.cpp is the appropriate place for it. It doesn't fit in the graphics directory, though, since it doesn't actually do any drawing on its own.
Ticket imported from: #1186744. Ticket imported from: patches/527.