Header Banner
WonderHowTo Logo
WonderHowTo
C++
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless
Home
C++

How to Create basic 3D shapes using OpenGL and GLUT for C++

"How to Create basic 3D shapes using OpenGL and GLUT for C++" cover image

To start developing your own 3D games and programs, you're going to need to know the basics of C++, like shaping.

This video lesson will show you how to create basic shapes using OpenGL and GLUT for C++, so you can start making your own 3D programs. If you want to create your very first OpenGL project, this is the place to be.

With this general shape knowledge, you'll be able to code a simple OpenGL program, so pay attention. You learn the basics of drawing triangles and quadrilaterals to a window.

How does this specific program work? Well, the basic idea: we tell OpenGL the 3D coordinates of all of the vertices of our shapes. OpenGL uses the standard x and y axes, with the positive x direction pointing toward the right and the positive y direction pointing upward. However, in 3D we need another dimension, the z dimension. The positive z direction points out of the screen.

*Get the text version of this lesson.

*Download the source code.

*Try out the exercises.

Check out the other videos in this video series.

URL Preview
Create basic 3D shapes using OpenGL and GLUT for C++

Click through to watch this video on videotutorialsrock.com

External Content
www.videotutorialsrock.com

Apple's iOS 26 and iPadOS 26 updates are packed with new features, and you can try them before almost everyone else. First, check Gadget Hacks' list of supported iPhone and iPad models, then follow the step-by-step guide to install the iOS/iPadOS 26 beta — no paid developer account required.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!