Autres corrections.
This commit is contained in:
parent
f3a3e0c27f
commit
8f387d2f34
@ -65,7 +65,6 @@ void Engine::Render(float elapsedTime)
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
|
||||
|
||||
m_player.Move(m_keyW, m_keyS, m_keyA, m_keyD, elapsedTime);
|
||||
m_player.ApplyTransformation(all);
|
||||
all.Use();
|
||||
@ -135,12 +134,12 @@ void Engine::Render(float elapsedTime)
|
||||
all.ApplyTranslation(0.f, 0.f, -10.f);
|
||||
all.ApplyRotation(gameTime * 100.f, 0.f, 1.f, 0.f);
|
||||
all.ApplyRotation(gameTime * 100.f, 0.f, 0.f, 1.f);
|
||||
//all.ApplyRotation(gameTime * 100.f, 1.f, 0.f, 0.f);
|
||||
all.ApplyRotation(gameTime * 100.f, 1.f, 0.f, 0.f);
|
||||
all.Use();
|
||||
m_textureCube.Bind();
|
||||
glBegin(GL_QUADS);
|
||||
|
||||
glNormal3f(0, 0, 1);
|
||||
glNormal3f(0, 0, -1);
|
||||
glTexCoord2f(1, 0);
|
||||
glVertex3f(-0.5f, -0.5f, -0.5f);
|
||||
glTexCoord2f(0, 0);
|
||||
@ -150,7 +149,7 @@ void Engine::Render(float elapsedTime)
|
||||
glTexCoord2f(1, 1);
|
||||
glVertex3f(-0.5f, 0.5f, -0.5f);
|
||||
|
||||
glNormal3f(0, 0, -1);
|
||||
glNormal3f(0, 0, 1);
|
||||
glTexCoord2f(0, 0);
|
||||
glVertex3f(-0.5f, -0.5f, 0.5f);
|
||||
glTexCoord2f(1, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user