Skip to content

Commit 9416c0b

Browse files
committed
Corrected Minor Typos in tutorial files
1 parent 03c0cbc commit 9416c0b

File tree

28 files changed

+104
-107
lines changed

28 files changed

+104
-107
lines changed

misc04_building_your_own_app/playground2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main( void )
2121
#endif
2222

2323

24-
// Initialise GLFW
24+
// Initialize GLFW
2525
if( !glfwInit() )
2626
{
2727
fprintf( stderr, "Failed to initialize GLFW\n" );

misc05_picking/misc05_picking_BulletPhysics.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void ScreenPosToWorldRay(
8686

8787
int main( void )
8888
{
89-
// Initialise GLFW
89+
// Initialize GLFW
9090
if( !glfwInit() )
9191
{
9292
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -135,7 +135,7 @@ int main( void )
135135

136136
// Enable depth test
137137
glEnable(GL_DEPTH_TEST);
138-
// Accept fragment if it closer to the camera than the former one
138+
// Accept fragment if it is closer to the camera than the former one
139139
glDepthFunc(GL_LESS);
140140

141141
// Cull triangles which normal is not towards the camera

misc05_picking/misc05_picking_custom.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ bool TestRayOBBIntersection(
198198

199199
int main( void )
200200
{
201-
// Initialise GLFW
201+
// Initialize GLFW
202202
if( !glfwInit() )
203203
{
204204
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -209,7 +209,7 @@ int main( void )
209209
glfwWindowHint(GLFW_SAMPLES, 4);
210210
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
211211
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
212-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
212+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
213213
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
214214

215215
// Open a window and create its OpenGL context
@@ -248,7 +248,7 @@ int main( void )
248248

249249
// Enable depth test
250250
glEnable(GL_DEPTH_TEST);
251-
// Accept fragment if it closer to the camera than the former one
251+
// Accept fragment if it is closer to the camera than the former one
252252
glDepthFunc(GL_LESS);
253253

254254
// Cull triangles which normal is not towards the camera

misc05_picking/misc05_picking_slow_easy.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ using namespace glm;
2929

3030
int main( void )
3131
{
32-
// Initialise GLFW
32+
// Initialize GLFW
3333
if( !glfwInit() )
3434
{
3535
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -40,7 +40,7 @@ int main( void )
4040
glfwWindowHint(GLFW_SAMPLES, 4);
4141
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
4242
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
43-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
43+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
4444
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
4545

4646
// Open a window and create its OpenGL context
@@ -79,7 +79,7 @@ int main( void )
7979

8080
// Enable depth test
8181
glEnable(GL_DEPTH_TEST);
82-
// Accept fragment if it closer to the camera than the former one
82+
// Accept fragment if it is closer to the camera than the former one
8383
glDepthFunc(GL_LESS);
8484

8585
// Cull triangles which normal is not towards the camera

playground/playground.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ using namespace glm;
1111

1212
int main( void )
1313
{
14-
// Initialise GLFW
14+
// Initialize GLFW
1515
if( !glfwInit() )
1616
{
1717
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -23,7 +23,7 @@ int main( void )
2323
glfwWindowHint(GLFW_RESIZABLE,GL_FALSE);
2424
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
2525
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
26-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
26+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
2727
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
2828

2929
// Open a window and create its OpenGL context

tutorial01_first_window/tutorial01.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ using namespace glm;
1515

1616
int main( void )
1717
{
18-
// Initialise GLFW
18+
// Initialize GLFW
1919
if( !glfwInit() )
2020
{
2121
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -26,7 +26,7 @@ int main( void )
2626
glfwWindowHint(GLFW_SAMPLES, 4);
2727
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
2828
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
29-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
29+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3030
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3131

3232
// Open a window and create its OpenGL context

tutorial02_red_triangle/tutorial02.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using namespace glm;
1717

1818
int main( void )
1919
{
20-
// Initialise GLFW
20+
// Initialize GLFW
2121
if( !glfwInit() )
2222
{
2323
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -28,7 +28,7 @@ int main( void )
2828
glfwWindowHint(GLFW_SAMPLES, 4);
2929
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3030
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
31-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
31+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3232
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3333

3434
// Open a window and create its OpenGL context

tutorial03_matrices/tutorial03.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using namespace glm;
1818

1919
int main( void )
2020
{
21-
// Initialise GLFW
21+
// Initialize GLFW
2222
if( !glfwInit() )
2323
{
2424
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -29,7 +29,7 @@ int main( void )
2929
glfwWindowHint(GLFW_SAMPLES, 4);
3030
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3131
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
32-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
32+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3333
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); //We don't want the old OpenGL
3434

3535
// Open a window and create its OpenGL context
@@ -67,7 +67,7 @@ int main( void )
6767
// Get a handle for our "MVP" uniform
6868
GLuint MatrixID = glGetUniformLocation(programID, "MVP");
6969

70-
// Projection matrix : 45° Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
70+
// Projection matrix : 45 Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
7171
glm::mat4 Projection = glm::perspective(glm::radians(45.0f), 4.0f / 3.0f, 0.1f, 100.0f);
7272
// Or, for an ortho camera :
7373
//glm::mat4 Projection = glm::ortho(-10.0f,10.0f,-10.0f,10.0f,0.0f,100.0f); // In world coordinates

tutorial04_colored_cube/tutorial04.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using namespace glm;
1818

1919
int main( void )
2020
{
21-
// Initialise GLFW
21+
// Initialize GLFW
2222
if( !glfwInit() )
2323
{
2424
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -29,7 +29,7 @@ int main( void )
2929
glfwWindowHint(GLFW_SAMPLES, 4);
3030
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3131
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
32-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
32+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3333
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3434

3535
// Open a window and create its OpenGL context
@@ -59,7 +59,7 @@ int main( void )
5959

6060
// Enable depth test
6161
glEnable(GL_DEPTH_TEST);
62-
// Accept fragment if it closer to the camera than the former one
62+
// Accept fragment if it is closer to the camera than the former one
6363
glDepthFunc(GL_LESS);
6464

6565
GLuint VertexArrayID;
@@ -72,7 +72,7 @@ int main( void )
7272
// Get a handle for our "MVP" uniform
7373
GLuint MatrixID = glGetUniformLocation(programID, "MVP");
7474

75-
// Projection matrix : 45° Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
75+
// Projection matrix : 45 Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
7676
glm::mat4 Projection = glm::perspective(glm::radians(45.0f), 4.0f / 3.0f, 0.1f, 100.0f);
7777
// Camera matrix
7878
glm::mat4 View = glm::lookAt(

tutorial05_textured_cube/tutorial05.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using namespace glm;
1919

2020
int main( void )
2121
{
22-
// Initialise GLFW
22+
// Initialize GLFW
2323
if( !glfwInit() )
2424
{
2525
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -29,7 +29,7 @@ int main( void )
2929
glfwWindowHint(GLFW_SAMPLES, 4);
3030
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3131
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
32-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
32+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3333
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3434

3535
// Open a window and create its OpenGL context
@@ -56,7 +56,7 @@ int main( void )
5656

5757
// Enable depth test
5858
glEnable(GL_DEPTH_TEST);
59-
// Accept fragment if it closer to the camera than the former one
59+
// Accept fragment if it is closer to the camera than the former one
6060
glDepthFunc(GL_LESS);
6161

6262
GLuint VertexArrayID;
@@ -69,7 +69,7 @@ int main( void )
6969
// Get a handle for our "MVP" uniform
7070
GLuint MatrixID = glGetUniformLocation(programID, "MVP");
7171

72-
// Projection matrix : 45° Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
72+
// Projection matrix : 45 Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
7373
glm::mat4 Projection = glm::perspective(glm::radians(45.0f), 4.0f / 3.0f, 0.1f, 100.0f);
7474
// Camera matrix
7575
glm::mat4 View = glm::lookAt(

tutorial06_keyboard_and_mouse/tutorial06.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using namespace glm;
2020

2121
int main( void )
2222
{
23-
// Initialise GLFW
23+
// Initialize GLFW
2424
if( !glfwInit() )
2525
{
2626
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -31,7 +31,7 @@ int main( void )
3131
glfwWindowHint(GLFW_SAMPLES, 4);
3232
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3333
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
34-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
34+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3535
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3636

3737
// Open a window and create its OpenGL context
@@ -55,7 +55,7 @@ int main( void )
5555

5656
// Ensure we can capture the escape key being pressed below
5757
glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);
58-
// Hide the mouse and enable unlimited mouvement
58+
// Hide the mouse and enable unlimited movement
5959
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
6060

6161
// Set the mouse at the center of the screen
@@ -67,7 +67,7 @@ int main( void )
6767

6868
// Enable depth test
6969
glEnable(GL_DEPTH_TEST);
70-
// Accept fragment if it closer to the camera than the former one
70+
// Accept fragment if it is closer to the camera than the former one
7171
glDepthFunc(GL_LESS);
7272

7373
// Cull triangles which normal is not towards the camera

tutorial07_model_loading/tutorial07.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using namespace glm;
2222

2323
int main( void )
2424
{
25-
// Initialise GLFW
25+
// Initialize GLFW
2626
if( !glfwInit() )
2727
{
2828
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -33,7 +33,7 @@ int main( void )
3333
glfwWindowHint(GLFW_SAMPLES, 4);
3434
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3535
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
36-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
36+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3737
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3838

3939
// Open a window and create its OpenGL context
@@ -57,7 +57,7 @@ int main( void )
5757

5858
// Ensure we can capture the escape key being pressed below
5959
glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);
60-
// Hide the mouse and enable unlimited mouvement
60+
// Hide the mouse and enable unlimited movement
6161
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
6262

6363
// Set the mouse at the center of the screen
@@ -69,7 +69,7 @@ int main( void )
6969

7070
// Enable depth test
7171
glEnable(GL_DEPTH_TEST);
72-
// Accept fragment if it closer to the camera than the former one
72+
// Accept fragment if it is closer to the camera than the former one
7373
glDepthFunc(GL_LESS);
7474

7575
// Cull triangles which normal is not towards the camera

tutorial08_basic_shading/tutorial08.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace glm;
2323

2424
int main( void )
2525
{
26-
// Initialise GLFW
26+
// Initialize GLFW
2727
if( !glfwInit() )
2828
{
2929
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -34,7 +34,7 @@ int main( void )
3434
glfwWindowHint(GLFW_SAMPLES, 4);
3535
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3636
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
37-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
37+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3838
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3939

4040
// Open a window and create its OpenGL context
@@ -58,7 +58,7 @@ int main( void )
5858

5959
// Ensure we can capture the escape key being pressed below
6060
glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);
61-
// Hide the mouse and enable unlimited mouvement
61+
// Hide the mouse and enable unlimited movement
6262
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
6363

6464
// Set the mouse at the center of the screen
@@ -70,7 +70,7 @@ int main( void )
7070

7171
// Enable depth test
7272
glEnable(GL_DEPTH_TEST);
73-
// Accept fragment if it closer to the camera than the former one
73+
// Accept fragment if it is closer to the camera than the former one
7474
glDepthFunc(GL_LESS);
7575

7676
// Cull triangles which normal is not towards the camera

tutorial09_vbo_indexing/tutorial09.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ using namespace glm;
2323

2424
int main( void )
2525
{
26-
// Initialise GLFW
26+
// Initialize GLFW
2727
if( !glfwInit() )
2828
{
2929
fprintf( stderr, "Failed to initialize GLFW\n" );
@@ -34,7 +34,7 @@ int main( void )
3434
glfwWindowHint(GLFW_SAMPLES, 4);
3535
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
3636
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
37-
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
37+
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make macOS happy; should not be needed
3838
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
3939

4040
// Open a window and create its OpenGL context
@@ -58,7 +58,7 @@ int main( void )
5858

5959
// Ensure we can capture the escape key being pressed below
6060
glfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE);
61-
// Hide the mouse and enable unlimited mouvement
61+
// Hide the mouse and enable unlimited movement
6262
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
6363

6464
// Set the mouse at the center of the screen
@@ -70,7 +70,7 @@ int main( void )
7070

7171
// Enable depth test
7272
glEnable(GL_DEPTH_TEST);
73-
// Accept fragment if it closer to the camera than the former one
73+
// Accept fragment if it is closer to the camera than the former one
7474
glDepthFunc(GL_LESS);
7575

7676
// Cull triangles which normal is not towards the camera

0 commit comments

Comments
 (0)