Beispiel #1
0
void OGL2DBase::DrawLine(const Point2D& stPoint,
                         const Point2D& endPoint) const
{
    if (stPoint.SamePoint(endPoint))
        return;

    glBegin(GL_LINES);
    glVertex3d(GLdouble(stPoint.pX), GLdouble(stPoint.pY), GLdouble(currZval));
    glVertex3d(GLdouble(endPoint.pX), GLdouble(endPoint.pY), GLdouble(currZval));
    glEnd();

}