Improved OpenGL and X11 rotating cube examples.
This commit is contained in:
parent
e2420dfe76
commit
650e792350
2 changed files with 50 additions and 35 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue