Check the Desktop development with C++ workload box as you download. If necessary scroll down the page. Click “Language pack” and check “English” box. {“smallUrl”:“https://www. wikihow. com/images/thumb/2/23/Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg”,“bigUrl”:"/images/thumb/2/23/Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg/aid10630455-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-3-Version-2. jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP. Into folder GL create folder with name GLAD
Click it > right click > select Copy. Navigate to C: > GL > right click > select paste. (Alternatively click folder “glfw-3. 3. 8. bin. WIN32”, or latest version, in window where is downloaded and drag into folder C:\GL). Click on “glfw-3. 3. 8. bin. WIN32” > right click > select “Rename” > type GLFWx32 > hit ↵ Enter. Now in “GL” folder you have folders: “GLAD” (empty) and “GLFWx32”.
In Language leave C/C++. Below API, in gl entry, select the latest version (today is 4. 6). In Specification leave OpenGL. In Profile select Core. Scroll down the page and click GENERATE. In “Glad” window (see picture above), click “glad. zip”. In downloading window you have two zip folders: include and src. Click folder include > right click > Copy. Navigate to C: > GL > GLAD. In GLAD folder right click > select Paste. (Alternatively click folder include and drag into folder GLAD, at C:\GL\GLAD). Go back to downloading window > click folder src > right click > Copy. Navigate to C: > GL > GLAD. In GLAD folder right click > select Paste. (Alternatively click folder src and drag into folder GLAD, at C:\GL\GLAD). Now in folder GLAD you have two (unzipped) folders: include and src.
If Visual Studio is not open. Open it > Click Create a new project > Empty Project > Next. In “Project name” text field type (or copy and paste) GLFWx32-GLAD-0 In “Location” text field type C:\GLP Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears. If it’s open. Click File > New > Project… > Empty Project > Next. The rest as above.
In “Project name” text field type (or copy and paste) GLFWx32-GLAD-0 In “Location” text field type C:\GLP Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears.
In the “Solution Explorer” window, right click the Source Files entry (the last one). Click Add > New Item… In the Add New Item - GLFWx32-GLAD-0 wizard, click C++ File (. cpp) (the first one) from the middle of the window. In the Name text box type Main. cpp. The Location is C:\GLP\GLFWx32-GLAD-0. Click the Add button. The file will open in the main text editor but leave the file blank for now.
Copy C:\GL\GLAD\src and paste in “Add Existing Item - GLFWx32-GLAD-0” wizard Address Bar > hit Enter > click glad. c. “File name” should be glad. c. Click Add.
1. Main menu. In Configuration: select Active(Debug) > Platform: Win32 or x86 > click Configuration Manager. “Configuration Manager” wizard “Active solution platform:” select x86 or Win32 “Platform” Win32 or x86 is automatically selected Click Close. 2. Additional Include Directories. Open C/C++ drop-down menu. Click General > Additional Include Directories.
the down arrow at the right of the field > click <Edit. . . in the drop down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} 1. Copy C:\GL\GLFWx32\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}. 2. Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste. On Additional Include Directories wizard click OK. 3. Additional Library Directories. Open the Linker drop-down menu, and click General. Click Additional Library Directories entry > down arrow at the right of the field > click <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/0f/Opengl-2-2. png/460px-Opengl-2-2. png”,“bigUrl”:"/images/thumb/0/0f/Opengl-2-2. png/699px-Opengl-2-2. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\GLFWx32\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies. In Linker drop down menu click “Input”. Click Additional Dependencies entry > the down arrow at the right of the field > <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/3/32/Opengl-3-1. png/460px-Opengl-3-1. png”,“bigUrl”:"/images/thumb/3/32/Opengl-3-1. png/699px-Opengl-3-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard. 5. System. In the Linker drop-down menu, click System > SubSystem > click the down arrow at the end of the field > select Console(/SUBSYSTEM:CONSOLE) from the dropdown menu > click Apply, then OK on the Project Property Pages wizard.
1. Main menu. In Configuration: select Active(Debug) > Platform: Win32 or x86 > click Configuration Manager. “Configuration Manager” wizard “Active solution platform:” select x86 or Win32 “Platform” Win32 or x86 is automatically selected Click Close. 2. Additional Include Directories. Open C/C++ drop-down menu. Click General > Additional Include Directories.
the down arrow at the right of the field > click <Edit. . . in the drop down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} 1. Copy C:\GL\GLFWx32\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}. 2. Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste. On Additional Include Directories wizard click OK. 3. Additional Library Directories. Open the Linker drop-down menu, and click General. Click Additional Library Directories entry > down arrow at the right of the field > click <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/0f/Opengl-2-2. png/460px-Opengl-2-2. png”,“bigUrl”:"/images/thumb/0/0f/Opengl-2-2. png/699px-Opengl-2-2. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\GLFWx32\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies. In Linker drop down menu click “Input”. Click Additional Dependencies entry > the down arrow at the right of the field > <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/3/32/Opengl-3-1. png/460px-Opengl-3-1. png”,“bigUrl”:"/images/thumb/3/32/Opengl-3-1. png/699px-Opengl-3-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard. 5. System. In the Linker drop-down menu, click System > SubSystem > click the down arrow at the end of the field > select Console(/SUBSYSTEM:CONSOLE) from the dropdown menu > click Apply, then OK on the Project Property Pages wizard.
“Configuration Manager” wizard “Active solution platform:” select x86 or Win32 “Platform” Win32 or x86 is automatically selected Click Close.
1. Copy C:\GL\GLFWx32\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}.
2.
Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste.
On Additional Include Directories wizard click OK.
Copy C:\GL\GLFWx32\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK.
Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard.
If only the black window (the console) appears with message: “Failed to create GLFW window”, set up is okay, function glfwCreateWindow did not work.
In “Error List” if you see error about file with extension . h go to previous Part, step 1, sub step 2. Additional Include Directories and follow instructions. file with extension . lib go to previous Part, step 1, sub step 3. Additional Library Directories, and follow instructions. Also to step 1, sub step 4. Additional Dependencies. “entry point must be defined” go to previous Part step 1, sub step 5. System and follow instructions. file glad. c go to Part 3, step 3, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWx32-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 3. Good job.
In “Error List” if you see error about file with extension . h go to previous Part, step 1, sub step 2. Additional Include Directories and follow instructions. file with extension . lib go to previous Part, step 1, sub step 3. Additional Library Directories, and follow instructions. Also to step 1, sub step 4. Additional Dependencies. “entry point must be defined” go to previous Part step 1, sub step 5. System and follow instructions. file glad. c go to Part 3, step 3, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWx32-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 3. Good job.
file with extension . lib go to previous Part, step 1, sub step 3. Additional Library Directories, and follow instructions. Also to step 1, sub step 4. Additional Dependencies. “entry point must be defined” go to previous Part step 1, sub step 5. System and follow instructions. file glad. c go to Part 3, step 3, and follow instructions.
In Create a new project wizard in the list of templates select GLFWx32-GLAD-0, (if necessary scroll down the list) > click Next. In Configure your new project wizard, “Project name” should be GLFWx32-GLAD-01. If “Location” is C:\GLP it’s okay. If it’s not, copy it and paste. Be sure Place solution and project in the same directory is checked. Click Create, and wait till project be created. In Visual Studio main menu, select x86. Hit Ctr+F5. Good job.
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP.
Click it > right click > select Copy. Navigate to C: > GL > right click > select paste. (Alternatively click folder “glfw-3. 3. 8. bin. WIN64”, or latest version, in window where is downloaded and drag into folder C:\GL). Copy GLFWx64 > click twice (not double) on “glfw-3. 3. 8. bin. WIN64” > delete name > Paste.
In Language leave C/C++. In API/gl entry, select the latest version (today is 4. 6). In Specification leave OpenGL. In Profile select Core. Scroll down the page and click GENERATE. In “Glad” window (see picture above), click “glad. zip”. In downloading window you have two zip folders: include and src. Click folder include > right click > Copy. Navigate to C: > GL > GLAD. In GLAD folder right click > select Paste. (Alternatively click folder include and drag into folder GLAD, at C:\GL\GLAD). Go back to downloading window > click folder src > right click > Copy. Navigate to C: > GL > GLAD. In GLAD folder right click > select Paste. (Alternatively click folder src and drag into folder GLAD, at C:\GL\GLAD). Now in folder GLAD you have two (unzipped) folders: include and src.
If Visual Studio is not open. Open it > Click Create a new project > Empty Project > Next. In “Project name” text field type (or copy and paste) GLFWx64-GLAD-0 In “Location” text field type C:\GLP Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears. If it’s open. Click File > New > Project… > Empty Project > Next. The rest as above.
In “Project name” text field type (or copy and paste) GLFWx64-GLAD-0 In “Location” text field type C:\GLP Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears.
In the “Solution Explorer” window, right click the Source Files entry (the last one). Click Add > New Item… In the Add New Item - GLFWx64-GLAD-0 wizard, click C++ File (. cpp) (the first one) from the middle of the window. In the Name text box type Main. cpp. “Location” should be C:\GLP\GLFWx64-GLAD-0. Click the Add button. The file will open in the main text editor but leave the file blank for now.
In “Add Existing Item - GLFWx64-GLAD-0” wizard, navigate to C: > GL > GLAD > src > glad. c > click glad. c. “File name” should be glad. c. Click Add.
1. Main menu. In Configuration entry select Active(Debug) > in Platform: entry, select “x64” > Click {{macButton|Configuration manager. . . }. In Configuration Manager wizard, Active solution platform: select “x64” Platform entry, “x64” is automatically selected. Click Close 2. Additional Include Directories. Open C/C++ drop-down menu. Click General > Additional Include Directories.
the down arrow at the right of the field > click <Edit. . . in the drop down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} 1. Copy C:\GL\GLFWx64\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}. 2. Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste. On Additional Include Directories wizard click OK. 3. Additional Library Directories. Open the Linker drop-down menu, and click General. Click Additional Library Directories entry > down arrow at the right of the field > click <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/0f/Opengl-2-2. png/460px-Opengl-2-2. png”,“bigUrl”:"/images/thumb/0/0f/Opengl-2-2. png/699px-Opengl-2-2. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\GLFWx64\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies. In Linker drop down menu click “Input”. Click Additional Dependencies entry > the down arrow at the right of the field > <Edit. . . in the drop-down menu. Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard. 5. System. In the Linker drop-down menu, click System > SubSystem > click the down arrow at the end of the field > select Console(/SUBSYSTEM:CONSOLE) from the dropdown menu > click Apply, then OK on the Project Property Pages wizard.
1. Main menu. In Configuration entry select Active(Debug) > in Platform: entry, select “x64” > Click {{macButton|Configuration manager. . . }. In Configuration Manager wizard, Active solution platform: select “x64” Platform entry, “x64” is automatically selected. Click Close 2. Additional Include Directories. Open C/C++ drop-down menu. Click General > Additional Include Directories.
the down arrow at the right of the field > click <Edit. . . in the drop down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} 1. Copy C:\GL\GLFWx64\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}. 2. Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste. On Additional Include Directories wizard click OK. 3. Additional Library Directories. Open the Linker drop-down menu, and click General. Click Additional Library Directories entry > down arrow at the right of the field > click <Edit. . . in the drop-down menu. {“smallUrl”:“https://www. wikihow. com/images/thumb/0/0f/Opengl-2-2. png/460px-Opengl-2-2. png”,“bigUrl”:"/images/thumb/0/0f/Opengl-2-2. png/699px-Opengl-2-2. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en. wikipedia. org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\GLFWx64\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK. 4. Additional Dependencies. In Linker drop down menu click “Input”. Click Additional Dependencies entry > the down arrow at the right of the field > <Edit. . . in the drop-down menu. Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard. 5. System. In the Linker drop-down menu, click System > SubSystem > click the down arrow at the end of the field > select Console(/SUBSYSTEM:CONSOLE) from the dropdown menu > click Apply, then OK on the Project Property Pages wizard.
Active solution platform: select “x64” Platform entry, “x64” is automatically selected. Click Close
1. Copy C:\GL\GLFWx64\include > in Additional Include Directories wizard click first icon > paste. {“smallUrl”:“https://www. wikihow. com/images/thumb/5/59/OpenGL-12. png/460px-OpenGL-12. png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12. png/728px-OpenGL-12. png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"}.
2.
Copy C:\GL\GLAD\include > in Additional Include Directories wizard click first icon > paste.
On Additional Include Directories wizard click OK.
Copy C:\GL\GLFWx64\lib-vc2022 > in “Additional Library Directories” wizard click first icon > Paste. In “Additional Library Directories” wizard click OK.
Copy opengl32. lib; glfw3. lib; glfw3dll. lib and paste in the top-most text box in the Additional Dependencies wizard. Click OK in the Additional Dependencies wizard.
If only the black window (the console) appears with message: “Failed to create GLFW window”, set up is okay, function glfwCreateWindow did not work.
In “Error List” if you see error about file with extension . h go to previous Part, step 2, sub step 2. Additional Include Directories and follow instructions. file with extension . lib go to previous Part, step 2, sub step 3. Additional Library Directories, and follow instructions. Also to step 2, sub step 4. Additional Dependencies. “entry point must be defined” go to previous Part step 2, sub step 5. System and follow instructions. file glad. c go to Part 7, step 6, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWx64-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 7. Good job.
In “Error List” if you see error about file with extension . h go to previous Part, step 2, sub step 2. Additional Include Directories and follow instructions. file with extension . lib go to previous Part, step 2, sub step 3. Additional Library Directories, and follow instructions. Also to step 2, sub step 4. Additional Dependencies. “entry point must be defined” go to previous Part step 2, sub step 5. System and follow instructions. file glad. c go to Part 7, step 6, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWx64-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 7. Good job.
Click Finish. Template has been created. Close thrown window with template’s path.
Click Finish. Template has been created. Close thrown window with template’s path.
Click Finish. Template has been created. Close thrown window with template’s path.
In Create a new project wizard in the list of templates select GLFWx64-GLAD-0 (if necessary scroll down the list) > click Next. In Configure your new project wizard, “Project name” should be GLFWx64-GLAD-01. If Location is C:\GLP, it’s okay. If it’s not, copy C:\GLP, and paste. Be sure Place solution and project in the same directory is checked. Click Create, and wait till project be created. In Visual Studio’s GUI main menu, select x64 > hit Ctrl+F5. TIP. When you create project with this template remember in Visual Studio GUI’s main menu select x64.
If folders GL and GLP exist it’s okay. If they do not, right click in empty area > select New > Folder > type GL > hit ↵ Enter. By same way create folder GLP.
If the downloaded folder doesn’t contain line with stripes (unzipped folder) click it > right click > Copy. If downloaded folder’s icon contains vertical line with stripes (zipped folder), double click it for get unzipped folder, (or alternatively, click folder > right click > in drop-down menu select Extract all). When unzipping (extracting files) is finished, click unzip folder cmake-3. 25. 1-windows-x86_64. zip (or latest) > right click > Copy. Go to drive (directory) C: > GL > right click > Paste. (Alternatively click folder “cmake-3. 25. 0-windows-x86_64” and drag into folder “GL”). When copying is finished click folder “cmake-3. 25. 1-windows-x86_64” > right click > select “Rename” > type CMake > hit ↵ Enter > double click it > double click folder bin > inside you should see CMake’s logo next to file name cmake-gui > double click this file. If wizard “Windows protect your PC” appears, click More information > Run anyway. Now on your screen you have CMake GUI. Each time you need CMake, navigate to C:\ > GL > double click folder CMake > double click “bin” > double click file cmake-gui (the one with CMake’s logo).
In downloading window click zip folder glfw-3. 3. 8 (or latest) > click it, if you get no stripped (unzipped) icon, it’s okay. If not, right click > select Extract all. Copy unzip folder and paste in C:\GL. Now in directory C:\GL, you have unzip folder glfw-3. 3. 8 (or latest). Click on its name > delete name > type: GLFWsrc > hit ↵ Enter.
Right click on following address and select Open Link in New Window https://glad. dav1d. de/. {“smallUrl”:“https://www. wikihow. com/images/thumb/a/a9/Glad-13. png/460px-Glad-13. png”,“bigUrl”:"/images/thumb/a/a9/Glad-13. png/471px-Glad-13. png",“smallWidth”:460,“smallHeight”:547,“bigWidth”:471,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} In Language leave C/C++.
In API/gl entry, select the latest version (today is 4.
6).
In Specification leave OpenGL.
In Profile select Core.
Scroll down the page and click GENERATE.
In “Glad” window (see picture above), click “glad.
zip”.
In downloading window you have two zip folders: include and src.
Click folder include > right click > Copy.
Navigate to C: > GL > GLAD.
In GLAD folder right click > select Paste.
(Alternatively click folder include and drag into folder GLAD, at C:\GL\GLAD).
Go back to downloading window > click folder src > right click > Copy.
Navigate to C: > GL > GLAD.
In GLAD folder right click > select Paste.
(Alternatively click folder src and drag into folder GLAD, at C:\GL\GLAD).
Now in folder GLAD you have two (unzipped) folders: include and src.
Where is the source code. Copy (attention: do not copy any space)C:\GL\GLFWsrc and paste in CMake GUI beside text field. Where to build the binaries. Copy (attention: do not copy any space)C:\GL\GLFWsrc\build an paste in beside text field. Configure and generate. In CMake GUI, click Configure > in wizard Create Directory click Yes > in wizard “Specify the generator for this project” click Finish. When, in CMake GUI, you read: “Configuring done”, click Generate. You should read: “Generating done”. If, instead, wizard “Error” is thrown, click OK > click “File” > click “Delete Cache” > in thrown wizard “Delete Cache”, click Yes. Build your solution. Copy C:\GL\GLFWsrc\build and paste in File Explorer Address Bar > hit ↵ Enter > Double click “GLFW. sln”, or “GLFW”, or “ALL_BUILD. vcxproj”. An instance of Visual Studio appears. Wait until in main menu Build entry appears. Click it > click “Build Solution”. Wait till you read the last line in “Output” window: ========== Build: 32 succeeded, 0 failed, 0 up-to-date, 3 skipped" ========== Numbers of “succeeded” and skipped change in glfw versions. Today (8-Nov-2022) is 32 and 3 respectively. Copy C:\GL\GLFWsrc\build\src\Debug and paste in File Explorer Address Bar > hit ↵ Enter. You should see file glfw3. lib. Close cmake GUI.
If Visual Studio is not open, open it, click Create a new project click Empty Project > Next. In Configure your new project wizard for “Project name” type (or copy and paste) GLFWsrc-GLAD-0 Copy C:\GLP and paste in “Location” text field. Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears. If Visual Studio is open. In main menu click File > New > Project… > the rest as above.
In Configure your new project wizard for “Project name” type (or copy and paste) GLFWsrc-GLAD-0 Copy C:\GLP and paste in “Location” text field. Check “Place solution and project in the same directory”. Click Create. Wait till Visual Studio instance appears.
In the Add New Item - GLFWsrc-GLAD-0 wizard, click C++ File (. cpp) (the first one) from the middle of the window. In the Name text box, type Main. cpp. The Location should be C:\GLP\GLFWsrc-GLAD-0. If it’s not, copy GLFWsrc-GLAD-0 and paste. Click the Add button. The file will open in the text editor but leave it blank for now.
Navigate to C: > GL > GLAD > src > glad. c > click glad. c. “File name” should be glad. c. Click Add. In Solution Explorer, below Source Files you should see two files: glad. c and Main. cpp.
1. “Main menu”. In “Configuration” entry, select “Active(Debug)” > in Platform entry, select x64 > click Configuration Manager. . . . In Active solution platform: select x64. In Platform entry, x64 is automatically selected. Click Close. 2. “Include”. Click C/C++ > General > In beside menu select the first one, Additional Include Directories > click the down arrow at the end of the field > click Edit. . . . {“smallUrl”:“https://www. wikihow. com/images/thumb/6/62/Opengl-1. png/460px-Opengl-1. png”,“bigUrl”:"/images/thumb/6/62/Opengl-1. png/700px-Opengl-1. png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} {“smallUrl”:“https://www.
wikihow.
com/images/thumb/5/59/OpenGL-12.
png/460px-OpenGL-12.
png”,“bigUrl”:"/images/thumb/5/59/OpenGL-12.
png/728px-OpenGL-12.
png",“smallWidth”:460,“smallHeight”:299,“bigWidth”:728,“bigHeight”:473,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:\GL\GLFWsrc\include click first icon in Additional Include Directories wizard and paste.
Copy C:\GL\GLAD\include and, in Additional Include Directories wizard, click first icon > paste > click OK.
Click OK on Additional Include Directories wizard.
3.
“Library”.
Double click Linker > click General > Additional Library Directories > click the down arrow at the end of the field > click Edit.
.
.
.
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/0/0f/Opengl-2-2.
png/460px-Opengl-2-2.
png”,“bigUrl”:"/images/thumb/0/0f/Opengl-2-2.
png/699px-Opengl-2-2.
png",“smallWidth”:460,“smallHeight”:368,“bigWidth”:700,“bigHeight”:560,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy C:/GL/GLFWsrc/build/src/Debug click first icon in Additional Library Directories wizard, and paste.
Click OK on Additional Library Directories wizard.
4.
“Dependencies”.
In Linker drop-down menu select Input > in beside menu select the first one, Additional Dependencies > click the down arrow at the end of the field > Edit.
.
.
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg”,“bigUrl”:"/images/thumb/c/cd/Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg/aid10630455-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-11-Version-2.
jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Copy opengl32.
lib; glfw3.
lib and paste in Additional Dependencies wizard’s upper-most text box.
Click OK on Additional Dependencies wizard.
5.
“System”.
In Linker drop-down menu select System > in beside menu select the first one, SubSystem > click the down arrow at the end of the field > select Console (/SUBSYSTEM:CONSOLE).
{“smallUrl”:“https://www.
wikihow.
com/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg/v4-460px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg”,“bigUrl”:"/images/thumb/f/f4/Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg/aid10630455-v4-728px-Set-Up-SDL-with-Visual-Studio-2017-Step-12-Version-2.
jpg",“smallWidth”:460,“smallHeight”:345,“bigWidth”:728,“bigHeight”:546,“licensing”:"<div class="mw-parser-output">
License: <a target="_blank" rel="nofollow noreferrer noopener" class="external text" href="https://en.
wikipedia.
org/wiki/Fair_use">Fair Use</a> (screenshot)
\n</p></div>"} Click Apply and OK on GLFWsrc-GLAD-0 Property Pages wizard.
In Active solution platform: select x64. In Platform entry, x64 is automatically selected. Click Close.
Copy C:\GL\GLFWsrc\include click first icon in Additional Include Directories wizard and paste. Copy C:\GL\GLAD\include and, in Additional Include Directories wizard, click first icon > paste > click OK. Click OK on Additional Include Directories wizard.
Copy C:/GL/GLFWsrc/build/src/Debug click first icon in Additional Library Directories wizard, and paste. Click OK on Additional Library Directories wizard.
Copy opengl32. lib; glfw3. lib and paste in Additional Dependencies wizard’s upper-most text box. Click OK on Additional Dependencies wizard.
If only the black window (the console) appears with message: “Failed to create GLFW window”, set up is okay, function glfwCreateWindow did not work.
In “Error List” if you see error about file with extension . h go to previous Part, step 8, sub step 2. Include and follow instructions. file with extension . lib go to previous Part, step 8, sub step 3. Library, and follow instructions. Also to step 8 sub step 4. Dependencies. “entry point must be defined” go to previous Part step 8, sub step 5. System and follow instructions. file glad. c go to previous Part, step 7, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWsrc-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 11. Good job.
In “Error List” if you see error about file with extension . h go to previous Part, step 8, sub step 2. Include and follow instructions. file with extension . lib go to previous Part, step 8, sub step 3. Library, and follow instructions. Also to step 8 sub step 4. Dependencies. “entry point must be defined” go to previous Part step 8, sub step 5. System and follow instructions. file glad. c go to previous Part, step 7, and follow instructions. For other errors, if you cannot correct them, close Visual Studio > delete project folder GLFWsrc-GLAD-0 which lives in C:\GLP > open Visual Studio > repeat set up from Part 11. Good job.
Template has been created. Close thrown window with template’s path.
Template has been created. Close thrown window with template’s path.
Template has been created. Close thrown window with template’s path.
In Create a new project wizard in the list of templates select GLFWsrc-GLAD-0 (if necessary scroll down the list) > click Next. In Configure your new project wizard, “Project name” should be GLFWsrc-GLAD-01. If “Location” is C:\GLP it’s okay. If it’s not, copy and paste. Be sure Place solution and project in the same directory is checked. Click Create, and wait till project be created. In Visual Studio main menu, select x64. Hit Ctr+F5. Good programming.
Set up binaries x86 (32 bits). It’s the easiest. You should start learning set up from here. Set up binaries x64 (64 bits). It targets x64 platform. Choose it only when you have specific reason for doing so. Compile GLFW source, and set up, together with GLAD, in project. Targets x64 too. The most difficult. The best though.