Skip to content

Commit

Permalink
Change background color to white for all samples (recommended for cre…
Browse files Browse the repository at this point in the history
…ating screenshots for the book)

Except for Example_6_3, ParticleSystem and
ParticleSystemTransformFeedback samples since nothing is rendered for
them with PowerVR emulator.
  • Loading branch information
bpurnomo committed Oct 25, 2013
1 parent 802ac53 commit 44cb2c1
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Chapter_10/MultiTexture/MultiTexture.c
Expand Up @@ -135,7 +135,7 @@ int Init ( ESContext *esContext )
return FALSE;
}

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down
4 changes: 2 additions & 2 deletions Chapter_14/Shadows/Shadows.c
Expand Up @@ -361,7 +361,7 @@ int Init ( ESContext *esContext )
return FALSE;
}

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );

// disable culling
glDisable ( GL_CULL_FACE );
Expand Down Expand Up @@ -460,7 +460,7 @@ void Draw ( ESContext *esContext )

// Clear the color and depth buffers
glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );

// Use the scene program object
glUseProgram ( userData->sceneProgramObject );
Expand Down
2 changes: 1 addition & 1 deletion Chapter_14/TerrainRendering/TerrainRendering.c
Expand Up @@ -224,7 +224,7 @@ int Init ( ESContext *esContext )
positions, GL_STATIC_DRAW );
free ( positions );

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );

return TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion Chapter_2/Hello_Triangle/Hello_Triangle.c
Expand Up @@ -166,7 +166,7 @@ int Init ( ESContext *esContext )
// Store the program object
userData->programObject = programObject;

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_6/Example_6_6/Example_6_6.c
Expand Up @@ -96,7 +96,7 @@ int Init ( ESContext *esContext )
userData->vboIds[2] = 0;


glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_6/MapBuffers/MapBuffers.c
Expand Up @@ -94,7 +94,7 @@ int Init ( ESContext *esContext )
userData->vboIds[0] = 0;
userData->vboIds[1] = 0;

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_6/VertexArrayObjects/VertexArrayObjects.c
Expand Up @@ -145,7 +145,7 @@ int Init ( ESContext *esContext )
// Reset to the default VAO
glBindVertexArray ( 0 );

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_6/VertexBufferObjects/VertexBufferObjects.c
Expand Up @@ -101,7 +101,7 @@ int Init ( ESContext *esContext )
userData->vboIds[0] = 0;
userData->vboIds[1] = 0;

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_7/Instancing/Instancing.c
Expand Up @@ -155,7 +155,7 @@ int Init ( ESContext *esContext )
}
glBindBuffer ( GL_ARRAY_BUFFER, 0 );

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_8/Simple_VertexShader/Simple_VertexShader.c
Expand Up @@ -98,7 +98,7 @@ int Init ( ESContext *esContext )
// Starting rotation angle for the cube
userData->angle = 45.0f;

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return GL_TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_9/MipMap2D/MipMap2D.c
Expand Up @@ -280,7 +280,7 @@ int Init ( ESContext *esContext )
// Load the texture
userData->textureId = CreateMipMappedTexture2D ();

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_9/Simple_Texture2D/Simple_Texture2D.c
Expand Up @@ -126,7 +126,7 @@ int Init ( ESContext *esContext )
// Load the texture
userData->textureId = CreateSimpleTexture2D ();

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c
Expand Up @@ -159,7 +159,7 @@ int Init ( ESContext *esContext )
NULL, &userData->indices );


glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down
2 changes: 1 addition & 1 deletion Chapter_9/TextureWrap/TextureWrap.c
Expand Up @@ -171,7 +171,7 @@ int Init ( ESContext *esContext )
// Load the texture
userData->textureId = CreateTexture2D ();

glClearColor ( 0.0f, 0.0f, 0.0f, 0.0f );
glClearColor ( 1.0f, 1.0f, 1.0f, 0.0f );
return TRUE;
}

Expand Down

0 comments on commit 44cb2c1

Please sign in to comment.