kicad-developers team mailing list archive
Mailing list archive
Re: [GAL] Added fixed-width line rendering
If you're willing to have a look at this feature I'd appreciate it. I have
no knowledge of the OpenGL GAL so it would be much quicker if you could
implement it :)
On 23 Jun 2017 08:23, "Maciej Suminski" <maciej.suminski@xxxxxxx> wrote:
> Hi Oliver,
> I have mixed feelings about this patch. This approach is ok for Cairo
> and non-cached targets in OpenGL, for cached targets it will still draw
> a line that is dependent on the zoom level.
> Ideally, the problem could be solved with shaders. I can give you some
> hints if you want to tackle this, otherwise I may try to code it myself
> next week.
> On 06/22/2017 03:44 PM, Oliver Walters wrote:
> > This patch adds zoom-independent fixed-width line rendering to GAL.
> > GAL drawing tools can call SetFixedLineWidth( width ) to draw a line that
> > is the same width on screen (pixels) independent of the zoom level.
> > I have implemented this in two locations:
> > a) PCB_BRIGHTBOX - the selection clarification bright-box is very thin at
> > wide zoom, and very wide at narrow zoom. Now it is 3 pixels thick at all
> > zoom
> > b) RATS_NEST - Increased this to 2 pixels wide, it is much easier to see!
> > _______________________________________________
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help : https://help.launchpad.net/ListHelp
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp