Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
einsteinathome
pulsatingscience
Commits
9148a60c
Commit
9148a60c
authored
Jul 23, 2010
by
Oliver Bock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use exisiting variable
parent
0587db32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pulsaranimationwidget.cpp
src/pulsaranimationwidget.cpp
+2
-2
No files found.
src/pulsaranimationwidget.cpp
View file @
9148a60c
...
...
@@ -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.0
f
,
1.0
f
,
0.0
f
);
glVertex3f
(
0.0
f
,
0.0
f
,
3.0
f
);
glVertex3f
(
0.0
f
,
0.0
f
,
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.66
f
,
0.66
f
,
0.0
f
);
glVertex3f
(
0.0
f
,
0.0
f
,
3.0
f
);
glVertex3f
(
0.0
f
,
0.0
f
,
m_pulsarBeamLength
);
for
(
angle
=
0.0
f
;
angle
<
(
2.0
f
*
PI
);
angle
+=
(
PI
/
32.0
f
))
{
x
=
m_pulsarBeamInnerRadius
*
sin
(
angle
);
y
=
m_pulsarBeamInnerRadius
*
cos
(
angle
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment