gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz-commits] gzz gzz/vob/vobs/SimpleConnection.java gzz/vob/...


From: Tuomas Lukka
Subject: Re: [Gzz-commits] gzz gzz/vob/vobs/SimpleConnection.java gzz/vob/...
Date: Tue, 26 Nov 2002 10:21:40 +0200
User-agent: Mutt/1.4i

On Mon, Nov 25, 2002 at 02:26:28PM +0200, Asko Soukka wrote:
> Mon, 25 Nov 2002, Benja Fallenstein wrote:
> > >-            line = GLRen.createLineConnector(1, 1);
> > >+      if(color != null)
> > >+          line = GLRen.createColoredLineConnector(1, 1,
> > >+                                                  color.getRed()/255f,
> > >+                                                  color.getGreen()/255f,
> > >+                                                  color.getBlue()/255f,
> > >+                                                  1);
> > >+      else line = GLRen.createLineConnector(1, 1);
> > If LineConnector didn't work before, and you didn't change it (just
> > added ColoredLineConnector), why do you still use LineConnector in some
> > cases?
> 
> :) This was only for drawing red connections in DimDecorator also with GL.
> AFAIK, views don't give the color parameter and the default color should
> be used? But even I tried to be careful, every connection is now red with
> GL. I'm pretty confused, how to avoid overwriting default color in GL. And
> my code is not the only one, which currently does it...

        PushAttrib CURRENT_BIT
        Color ...
        blah blah

        PopAttrib

See the red book about these.

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]