The code shown when run displays a red triangle, a green rectangle, and a blue house shape. They are 2D, and I can’t quite seem to make them 3D. I tried putting values in for the z axis, but when I do the window display is all messed up.
You don’t make the object 3D, it is either planar or spatial, but anyway projection makes all objects 2D, it projects them on a plane. I recommend that you do some more tuts over from NeHe and play around a little with the modelview matrix to get the “3D” feeling