I have been teaching myself basic modeling using the online Redbook and other tutorials I have found online. I have constructed a basic pyramid and implemented culling to correctly hide faces that should not be visible to the camera. My next step was to draw edges to essentially create a mesh on the object faces. I also got that working. The issue I am struggling with is hiding those edge lines that should not be visible to the camera. I have searched for a solution online for a couple of days now, but I am not having much success. Is there a way to accomplish this line hiding? I am hoping someone can point me in the right direction or provide some advise on how to resolve this.

Thanks in advance!