Remove unused parameters in hellowindow.
(cherry picked from commit 3d7f0d967ca1e7e76087d84efc67f5247b72dae6)
This commit is contained in:
parent
f1601a4930
commit
33e1b8dda5
@ -69,7 +69,6 @@ void HelloWindow::render()
|
||||
modelview.rotate(m_fAngle, 0.0f, 1.0f, 0.0f);
|
||||
modelview.rotate(m_fAngle, 1.0f, 0.0f, 0.0f);
|
||||
modelview.rotate(m_fAngle, 0.0f, 0.0f, 1.0f);
|
||||
modelview.scale(m_fScale);
|
||||
modelview.translate(0.0f, -0.2f, 0.0f);
|
||||
|
||||
program.bind();
|
||||
@ -139,7 +138,6 @@ void HelloWindow::initialize()
|
||||
colorUniform = program.uniformLocation("sourceColor");
|
||||
|
||||
m_fAngle = 0;
|
||||
m_fScale = 1;
|
||||
createGeometry();
|
||||
updateColor();
|
||||
}
|
||||
|
@ -21,9 +21,7 @@ private:
|
||||
void initialize();
|
||||
void updateColor();
|
||||
|
||||
GLuint m_uiTexture;
|
||||
qreal m_fAngle;
|
||||
qreal m_fScale;
|
||||
bool m_showBubbles;
|
||||
void paintQtLogo();
|
||||
void createGeometry();
|
||||
@ -32,9 +30,6 @@ private:
|
||||
void extrude(qreal x1, qreal y1, qreal x2, qreal y2);
|
||||
QVector<QVector3D> vertices;
|
||||
QVector<QVector3D> normals;
|
||||
bool qtLogo;
|
||||
int frames;
|
||||
QTime time;
|
||||
QGLShaderProgram program;
|
||||
int vertexAttr;
|
||||
int normalAttr;
|
||||
|
Loading…
Reference in New Issue
Block a user