Improved OpenGL and X11 rotating cube examples.

This commit is contained in:
binary1248 2015-01-12 18:15:46 +01:00
parent e2420dfe76
commit 650e792350
2 changed files with 50 additions and 35 deletions

View file

@ -80,7 +80,7 @@ int main()
glBindTexture(GL_TEXTURE_2D, texture);
// Define a 3D cube (6 faces made of 2 triangles composed by 3 vertices)
GLfloat cube[] =
static const GLfloat cube[] =
{
// positions // texture coordinates
-20, -20, -20, 0, 0,