← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/beautiful_correct_lines into lp:widelands

 

The proposal to merge lp:~widelands-dev/widelands/beautiful_correct_lines into lp:widelands has been updated.

Commit Message changed to:

Fixes line drawing by replacing the broken use of GL_LINES with a tessellation algorithm for drawing lines.

We are drawing a line segment as two triangles. The width of the lines is found by calculating the normal of a line and pushing the vertices of the triangles along this normal. At line segment joints, we draw a circle with the radius of the line width to join the lines. Lines can optionally be antialiased in which case we just draw a 2-pixels wider line with a lower alpha value before drawing the line.

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/beautiful_correct_lines/+merge/284517
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/beautiful_correct_lines into lp:widelands.


References