Minor fix in Window and OpenGL examples

This commit is contained in:
Laurent Gomila 2013-06-03 20:48:24 +02:00
parent 7fc29c78f7
commit 7c9f9cc41c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -44,7 +44,7 @@ int main()
GLfloat ratio = static_cast<float>(window.getSize().x) / window.getSize().y;
glFrustum(-ratio, ratio, -1.f, 1.f, 1.f, 500.f);
// Define a 3D cube (8 faces made of 2 triangles composed by 3 vertices)
// Define a 3D cube (6 faces made of 2 triangles composed by 3 vertices)
GLfloat cube[] =
{
// positions // colors (r, g, b, a)