Linking OpenGL, GLEW, GLFW and GLM in Visual Studio 2022 Quick and Easy (Updated version for 2022!)

Опубликовано: 17 Март 2026
на канале: Suraj Sharma
7,350
202

Link OpenGL quick and easy for Visual Studio 2022.

ImGUI Video:    • Linking ImGUI for OpenGL and GLFW in Visua...  

Downloads:
GLEW: https://glew.sourceforge.net/
GLFW: https://www.glfw.org/download.html
GLM: https://github.com/g-truc/glm

C/C++ / General
$(SolutionDir)\External\GLEW\include
$(SolutionDir)\External\GLFW\include
$(SolutionDir)\External\glm

Linker / General
$(SolutionDir)\External\GLEW\lib\Release\Win32
$(SolutionDir)\External\GLFW\lib-vc2022

Linker inputs:
opengl32.lib
glew32.lib
glfw3.lib

Support:
Udemy courses coming soon!
Donations: https://streamlabs.com/surajsharmafou...
Discord:   / discord  
Twitter:   / sushcodingyt  

Links:
Wifeys channel:    / @juthikasharma2788  
My "Life Cast" channel:    / @surajjuthi5314  
Playlists:    / @surajsharmafourknob  
Code::Blocks or Linux (after 9:00) users:    • Linux and Code::Blocks compile insctructio...  
Source code: https://github.com/surajsharma90
Questions and inquiries: [email protected]

Chapters:
00:00 Intro
00:27 Demo
01:20 VS Project
02:06 Download GLEW
03:16 Download GLFW
04:16 Download GLM
04:56 Extract files
06:03 main.cpp
06:16 Linking
10:50 Copy DLL
11:50 Window example
21:25 Run and test
21:49 Test GLM
22:12 Outro

#gamedeveloper #3dGames #programming #opengl #gameengine