Re: [Stellarium-pubdevel] Drawing ellipses

2011-07-05 Thread Alexander Wolf
05.07.2011 17:31, Thomas Morris пишет: > Hi Alex, > > Perhaps you're right, but I think the circle texture is drawn by call > to drawSprite2d(). I was wrong - drawCircle is for draw a circle -- WBW, Alex -- All of th

Re: [Stellarium-pubdevel] Drawing ellipses

2011-07-05 Thread Thomas Morris
Hi Alex, Perhaps you're right, but I think the circle texture is drawn by call to drawSprite2d(). Eg. texCircle.bind(); sPainter.drawSprite2d() (sorry I don't have the code in front of me.) The drawCircle routine sets up an array of 180 vertices (Vec3D) and then calls glDrawArray(), so I think t

Re: [Stellarium-pubdevel] Drawing ellipses

2011-07-05 Thread Alexander Wolf
05.07.2011 05:15, Thomas Morris пишет: > I'd like to draw an ellipse outline for galaxies, so I've implemented > StelPainter::drawEllipse method, based on drawCircle. However nothing > is drawn even when I follow down to glDrawArrays call in the debugger. > The X,Y and sizes are consistent with som

[Stellarium-pubdevel] Drawing ellipses

2011-07-04 Thread Thomas Morris
Hello, I'd like to draw an ellipse outline for galaxies, so I've implemented StelPainter::drawEllipse method, based on drawCircle. However nothing is drawn even when I follow down to glDrawArrays call in the debugger. The X,Y and sizes are consistent with something appearing on the screen. I call