summaryrefslogtreecommitdiffstats
path: root/src/glsphere.cpp
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 10:17:32 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-24 10:19:12 +0100
commit67273a8486c31f2a2df425c5dd2d71cf888fd848 (patch)
tree3a6e242dff382ad30507ef1bc8abc4943a995b04 /src/glsphere.cpp
parent5c3f1612edc6cc19de2d56132b98be67102cb78a (diff)
downloadMultimedia-67273a8486c31f2a2df425c5dd2d71cf888fd848.tar.gz
Multimedia-67273a8486c31f2a2df425c5dd2d71cf888fd848.zip
Only add one north and southpol
Diffstat (limited to 'src/glsphere.cpp')
-rw-r--r--src/glsphere.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsphere.cpp b/src/glsphere.cpp
index 1a40540..e80f43a 100644
--- a/src/glsphere.cpp
+++ b/src/glsphere.cpp
@@ -22,9 +22,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer,
m_firstPoint = m_points->size();
+ m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color));
+
for (int slice = 1; slice < m_slices; slice += 2)
{
- m_points->append(GLPoint(m_radius * northpol, northpol, t0, m_color));
for (int stack = 1; stack < m_stacks; stack++)
{
@@ -36,9 +37,10 @@ void GLSphere::makeSurface(QVector<GLPoint> *pointContainer,
}
- m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color));
}
+ m_points->append(GLPoint(m_radius * southpol, southpol, t0, m_color));
+
m_nextPoint = m_points->size();
}