Threaded View

Why are my objects transparent?

Hi,

I am new to OpenGL. I am trying to make a motorcycle with primitive shapes. For some reason, the shapes that I have made are see-through and I can't figure out why. I am not specifying any alpha anywhere; here is my code:

You can rotate the camera with the arrow keys to see that the objects are see through. How can I fix this? I would also appreciate any advice to improve my code in any way, I want to learn as much as I can about OpenGL. Any advice would be appreciated.