-void DBobView::Draw2D(VIEWTYPE vt)
-{
- if(!path)
- return;
-
- g_QglTable.m_pfn_qglPushAttrib(GL_ALL_ATTRIB_BITS);
-
- g_QglTable.m_pfn_qglDisable(GL_BLEND);
- g_QglTable.m_pfn_qglEnable(GL_LINE_SMOOTH);
-
- g_QglTable.m_pfn_qglPushMatrix();
-
- switch(vt)
- {
- case XY:
- break;
- case XZ:
- g_QglTable.m_pfn_qglRotatef(270.0f, 1.0f, 0.0f, 0.0f);
- break;
- case YZ:
- g_QglTable.m_pfn_qglRotatef(270.0f, 1.0f, 0.0f, 0.0f);
- g_QglTable.m_pfn_qglRotatef(270.0f, 0.0f, 0.0f, 1.0f);
- break;
- }
-
- g_QglTable.m_pfn_qglLineWidth(1.0f);
- g_QglTable.m_pfn_qglColor4f(1.0f, 0.0f, 0.0f, 1.0f);
-
- int i;
-
- g_QglTable.m_pfn_qglBegin(GL_LINE_STRIP);
-
- for(i = 0; i < nPathCount; i++)
- g_QglTable.m_pfn_qglVertex3fv(path[i]);
-
- g_QglTable.m_pfn_qglEnd();
-
- if(m_bShowExtra)
- {
- // +mars
- // for the bounding box stuff
- g_QglTable.m_pfn_qglColor4f(0.25f, 0.75f, 0.75f, 1.0f);
-
- g_QglTable.m_pfn_qglTranslatef( 16.0f, 16.0f, 28.0f );
-
- g_QglTable.m_pfn_qglBegin( GL_LINE_STRIP );
-
- for ( i = 0; i < nPathCount; i++ )
- g_QglTable.m_pfn_qglVertex3fv( path[i] );
-
- g_QglTable.m_pfn_qglEnd();
-
- // ---------------
-
- g_QglTable.m_pfn_qglTranslatef( -16.0f, -16.0f, -28.0f ); // back to where we were
- g_QglTable.m_pfn_qglTranslatef( -16.0f, 16.0f, 28.0f ); // move to new postion
-
- g_QglTable.m_pfn_qglBegin( GL_LINE_STRIP );
-
- for ( i = 0; i < nPathCount; i++ )
- g_QglTable.m_pfn_qglVertex3fv( path[i] );
-
- g_QglTable.m_pfn_qglEnd();
-
- // --------------
-
- g_QglTable.m_pfn_qglTranslatef( 16.0f, -16.0f, -28.0f ); // back to where we were
- g_QglTable.m_pfn_qglTranslatef( 16.0f, -16.0f, -28.0f ); // new pos
-
- g_QglTable.m_pfn_qglBegin( GL_LINE_STRIP );
-
- for ( i = 0; i < nPathCount; i++ )
- g_QglTable.m_pfn_qglVertex3fv( path[i] );
-
- g_QglTable.m_pfn_qglEnd();
-
- // ----------------
-
- g_QglTable.m_pfn_qglTranslatef( -16.0f, 16.0f, 28.0f ); // back to where we were
-
-/* g_QglTable.m_pfn_qglTranslatef( -16.0f, -16.0f, -28.0f ); // new pos
-
- g_QglTable.m_pfn_qglBegin( GL_LINE_STRIP );
-
- if ( boundingShow == BOUNDS_ALL )
- {
- for ( i = 0; i < nPathCount; i++ )
- g_QglTable.m_pfn_qglVertex3fv( path[i] );
- }
- else if ( boundingShow == BOUNDS_APEX )
- {
- for ( i = (nPathCount/4); i < (nPathCount/4) * 3; i++ )
- g_QglTable.m_pfn_qglVertex3fv( path[i] );
- }
-
- g_QglTable.m_pfn_qglEnd();*/ // djbob: er, um doesn't really seem to do anyhting
- }