How do you build a 3D cube with a hollow inside?

I’m starting to get into designing 3D games, but im stuck on cubes. I can’t figure out how to get triangles to fit to form a cube, and the


Isn’t working well for me, can someone help?

Have you looked at the 3D lab demo program? It has code for a cube.

Okay, thanks @Ignatz