From 9148a60c76841ecbad84b92e44c7a721a2d90c6f Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Fri, 23 Jul 2010 15:34:26 +0200 Subject: [PATCH] Use exisiting variable --- src/pulsaranimationwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pulsaranimationwidget.cpp b/src/pulsaranimationwidget.cpp index 2c6502a..2db3d23 100644 --- a/src/pulsaranimationwidget.cpp +++ b/src/pulsaranimationwidget.cpp @@ -437,7 +437,7 @@ void PulsarAnimationWidget::paintGL() // Pinnacle of cone is shared vertex for fan, moved up z-axis // to produce a cone instead of a circle glColor3f(1.0f, 1.0f, 0.0f); - glVertex3f(0.0f, 0.0f, 3.0f); + glVertex3f(0.0f, 0.0f, m_pulsarBeamLength); // Loop around in a circle and specify even points along the circle // as the vertices of the triangle fan (32 sections) @@ -457,7 +457,7 @@ void PulsarAnimationWidget::paintGL() glBegin(GL_TRIANGLE_FAN); { glColor3f(0.66f, 0.66f, 0.0f); - glVertex3f(0.0f, 0.0f, 3.0f); + glVertex3f(0.0f, 0.0f, m_pulsarBeamLength); for(angle = 0.0f; angle < (2.0f*PI); angle += (PI/32.0f)) { x = m_pulsarBeamInnerRadius * sin(angle); y = m_pulsarBeamInnerRadius * cos(angle); -- GitLab