Creating a Window // OpenGL Tutorial #1

Veröffentlicht am: 13 März 2021
auf dem Kanal: OGLDEV
32,261
403

The following are affiliate links - if you purchase something the price is the same for you
and I get a commission.
AEJuice Free Plugins https://aejuice.com/free-plugins/?ref...
AEJuice I Want It All Bundle https://aejuice.com/product/i-want-it...
AEJuice YouTube Channel    / @aejuice  

In this video I will show you how to create a window to be used with OpenGL using FreeGLUT (I'm referring to 'FreeGLUT' as 'GLUT' in the video).

Please visit https://ogldev.org to see my tutorials on modern OpenGL.

Link to source: https://github.com/emeiri/ogldev/blob...
If you want to get the same version that was used in the video checkout the tag TUT_01_CREATE_WINDOW.

Make sure you watch my previous video on getting up and running with OGLDEV:    • Up and running with OpenGL On Ubuntu ...  

🔥 I'm using the following books as background information for my tutorials and I highly recommend them for learning more about OpenGL and Vulkan.
These are affiliate links so if you use them to buy the books the price is the same for you and I will get a small commision (thank-you!).

📖 OpenGL 4 Shading Language Cookbook - Third Edition: Build high-quality, real-time 3D graphics with OpenGL 4.6, GLSL 4.6 and C++17 3rd ed. Edition: https://amzn.to/3XO2J3S

📖 3D Graphics Rendering Cookbook: A comprehensive guide to exploring rendering algorithms in modern OpenGL and Vulkan: https://amzn.to/3MMJQbf
(Watch my short video review on this book:    • The 2nd book I'm using for my Vulkan ...  )

📖 Vulkan Programming Guide: The Official Guide to Learning Vulkan: https://amzn.to/3XwBjhr
(Watch my short video review on this book:    • The book I'm using for my Vulkan seri...  )

Time codes:
0:00 - Intro
2:09 - glutInit
3:20 - glutInitDisplayMode
4:44 - Init window params
5:07 - Create a Window
5:32 - glClearColor
7:03 - glutDisplayMode
7:35 - glutMainLoop
8:07 - glClear
8:21 - glutSwapBuffers
10:22 - glutPostRedisplay
10:55 - How to build the code
13:39 - Conclusion

Feel free to comment below.

email: ogldev1@gmail.com
Facebook:   / ogldev-188319114585587  
GITHUB: https://github.com/emeiri/ogldev.git
Twitter: @ogldev
One time donations (Paypal): https://ogldev.org/donate.html
Patreon:   / ogldev  

Enjoy,

Etay Meiri

#opengl #ogldev #opengtutorials


Auf dieser Seite können Sie das Online-Video Creating a Window // OpenGL Tutorial #1 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer OGLDEV 13 März 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 32,261 Mal angesehen und es wurde von 403 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!