What is OpenGL
- 
            This is a library for 2D and 3D graphics rendering. It provides API(Application Programming Interface) for drawing graphics on a computer screen.
GPU manufacturers(eg: AMD, Nvidia) implement OpenGL functions, and we use them in our Application.
OpenGL vs DirectX
| OpenGL | DirectX | |
|---|---|---|
| What | API for rendering graphics | Same | 
| Platform | Cross-platform, open-source(Windows, macOS, Linux, and other operating systems) | Windows, Xbox | 
| Focus | Primarily graphics | Graphics, audio, input, multimedia | 
| Supported By | Nvidia, AMD, Intel GPU manufacturers | Primarily Windows | 
Hello World Window
| 1. Write this code in Visual Studio 2. Download library, include files from glfw.org 3. Provide path of headers in include directory Project > C/C++ > General > Additional Include Directories 4. Provide path of lib in Library directory Project > Linker > General > Additional Library Directories 5. Draw Triangle by providing vertices 6. See the rendered Widow as below   |  |