I have created a solution that can be downloaded to directly run opengl on windows using visual studio. The credit goes to Suraj Sharma https://www.youtube.com/channel/UC2i39AOpDSlO1Mrn1jQ8Xkg/about for providing a wonderful tutorial on modern opengl.
His github link https://github.com/Headturna
- Download and Install Microsoft Visual Studio https://visualstudio.microsoft.com/
- Extract youtube_solution.zip to desired location.
- Open youtube_solution.sln in Visual Studio.
- Open main.cpp and run.
- Replace contents of the project with the lessons provided.
- Let's say you replaced it with the contents of 1-creating-a-window.
- Then on running the program, you will see a black window.