src/gldraw.cpp

changeset 418
c435027ee5cd
parent 412
064b0467c8de
child 419
d21b0a61d3b7
--- a/src/gldraw.cpp	Thu Aug 01 17:00:14 2013 +0300
+++ b/src/gldraw.cpp	Fri Aug 02 13:58:14 2013 +0300
@@ -741,6 +741,8 @@
 		break;
 	
 	case LDObject::CondLine:
+		// Draw conditional lines with a dash pattern - however, use a full
+		// line when drawing a pick list to make selecting them easier.
 		if (list != GL::PickList) {
 			glLineStipple (1, 0x6666);
 			glEnable (GL_LINE_STIPPLE);
@@ -782,40 +784,6 @@
 		}
 		break;
 	
-#if 0
-	TODO: find a proper way to draw vertices without having them be affected by zoom.
-	case LDObject::Vertex:
-		{
-			LDVertex* pVert = static_cast<LDVertex*> (obj);
-			LDTriangle* pPoly;
-			vertex* vPos = &(pVert->pos);
-			const double fPolyScale = max (fZoom, 1.0);
-			
-#define BIPYRAMID_COORD(N) ((((i + N) % 4) >= 2 ? 1 : -1) * 0.3f * fPolyScale)
-			
-			for (int i = 0; i < 8; ++i) {
-				pPoly = new LDTriangle;
-				pPoly->coords[0] = {vPos->x, vPos->y + ((i >= 4 ? 1 : -1) * 0.4f * fPolyScale), vPos->z};
-				pPoly->coords[1] = {
-					vPos->x + BIPYRAMID_COORD (0),
-					vPos->y,
-					vPos->z + BIPYRAMID_COORD (1)
-				};
-				
-				pPoly->coords[2] = {
-					vPos->x + BIPYRAMID_COORD (1),
-					vPos->y,
-					vPos->z + BIPYRAMID_COORD (2)
-				};
-				
-				pPoly->dColor = pVert->dColor;
-				compileOneObject (pPoly, list);
-				delete pPoly;
-			}
-		}
-		break;
-#endif // 0
-	
 	default:
 		break;
 	}

mercurial