In this video I will show you how to use Vertex Array Objects (VAO) in OpenGL in order to make it simpler to switch between groups of vertices that are characterized by different source buffers and different vertex layouts. I will also describe the compatibility and core profiles, show how to enable the core profile using FreeGLUT and describe how they affect the VAO. Finally, I'll review some changes that I've made in order to move most of the application code into a class.
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at [ Ссылка ]
Please visit [ Ссылка ] to see more of my tutorials on modern OpenGL.
Link to source: [ Ссылка ]
If you want to get the same version that was used in the video checkout the tag TUT_17_VAO.
OpenGL 4.6 specification: [ Ссылка ]
Timecodes:
0:00 Intro
0:14 Background
0:57 Multiple meshes
1:23 Vertex Array Objects
2:10 Compatibility and core profiles
2:58 VAOs and the profiles
3:19 How the enable the core profile in FreeGLUT
4:06 Start of code review
4:30 The Tutorial17 class
5:02 FreeGLUT callbacks
6:03 Using the VAO
8:10 Rest of the Init method
8:41 The render loop
9:03 Getting the current VAO from the OpenGL runtime
9:22 The keyboard callback function
9:43 Object cleanup
10:41 Changes to the main function
10:56 Run the demo
11:14 Conclusion
Feel free to comment below.
Contact:
Email: etay.meiri@gmail.com
Facebook: [ Ссылка ]
GIthub: [ Ссылка ]
Twitter: @ogldev
One time donations (Paypal): [ Ссылка ]
Patreon: [ Ссылка ]
My gear (Amazon affiliate links):
Camera - Canon EOS M50: [ Ссылка ]
Camera mic - Rode Videomic: [ Ссылка ]
Desktop mic - Rode NT-USB-Mini: [ Ссылка ]
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Vertex Array Objects // OpenGL Tutorial #17
Теги
ogldevopenglopengl tutorialsetay meirimodern openglopengl for beginnersgraphics programming3d programmingtriangle renderingshadersopengl c++ tutorialslearning openglopengl trainingopengl tutorial ubuntuopengl tutorial linuxvertex array objectsvao in openglopengl vertex array objectsopengl vaoopengl core profilefreeglut core profilevaoopengl tutorial