OpenGL rotation doesn't work

by senham   Last Updated January 13, 2018 10:13 AM

I try understand opengl, but I have many simple problems... I try rotate my object and I'm doing this:

            glBindTexture(GL_TEXTURE_2D, texture1);
            glUniform1i(glGetUniformLocation(theProgram.get_programID(), "Texture1"), 1);

            glRotatef(10.0f, 0.0f, 0.0f, -0.1f);
            glDrawElements(GL_TRIANGLES, _countof(tableIndices2), GL_UNSIGNED_INT, 0);

And my object is still in the same position. What is wrong? I use glVertexAttribPointer, VAO,VBO and EBO.

Related Questions

glRotatef not rotating simple 2D triangle

Updated May 23, 2015 21:05 PM

Opengl rotate around global axis

Updated March 01, 2017 14:13 PM

OpenGL 2.1 rotation , Gimball lock

Updated July 21, 2015 13:05 PM