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 the geometry comes from the
vector passed as argument, not the texture.

Maybe I need to set up some normals or something? I don't know much
about GL programming but I'm keen to learn.

When I get home tonight I'll look in the code for other places
drawCircle is used, to try to copy it.

Thanks,
Thomas

On 5 July 2011 10:32, Alexander Wolf <[email protected]> wrote:
> 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 something appearing on the
>> screen. I call setColor with reasonable values (1.0,0,0).
>
> But drawCircle use texture of circle, it don't draw circle!
>
>
> --
>  WBW, Alex
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Stellarium-pubdevel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to