TrailGroup.cpp   TrailGroup.cpp 
skipping to change at line 37 skipping to change at line 37
TrailGroup::TrailGroup(float te) : timeExtent(te), opacity(1.f) TrailGroup::TrailGroup(float te) : timeExtent(te), opacity(1.f)
{ {
j2000ToTrailNative=Mat4d::identity(); j2000ToTrailNative=Mat4d::identity();
j2000ToTrailNativeInverted=Mat4d::identity(); j2000ToTrailNativeInverted=Mat4d::identity();
} }
static QVector<Vec3d> vertexArray; static QVector<Vec3d> vertexArray;
static QVector<Vec4f> colorArray; static QVector<Vec4f> colorArray;
void TrailGroup::draw(StelCore* core, StelPainter* sPainter) void TrailGroup::draw(StelCore* core, StelPainter* sPainter)
{ {
glEnable(GL_BLEND); sPainter->setBlending(true);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
float currentTime = core->getJDE(); float currentTime = core->getJDE();
StelProjector::ModelViewTranformP transfo = core->getJ2000ModelViewT ransform(); StelProjector::ModelViewTranformP transfo = core->getJ2000ModelViewT ransform();
transfo->combine(j2000ToTrailNativeInverted); transfo->combine(j2000ToTrailNativeInverted);
sPainter->setProjector(core->getProjection(transfo)); sPainter->setProjector(core->getProjection(transfo));
foreach (const Trail& trail, allTrails) foreach (const Trail& trail, allTrails)
{ {
Planet* hpl = dynamic_cast<Planet*>(trail.stelObject.data()) ; Planet* hpl = dynamic_cast<Planet*>(trail.stelObject.data()) ;
if (hpl!=NULL) if (hpl!=NULL)
{ {
// Avoid drawing the trails if the object is the hom e planet // Avoid drawing the trails if the object is the hom e planet
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/