void LineBrush::BrushBegin(const ImpBrush::Point source, const ImpBrush::Point target) { ImpressionistDoc* pDoc = GetDocument(); ImpressionistUI* dlg = pDoc->m_pUI; glLineWidth(pDoc->getLineWidth()); BrushMove(source, target); }
void ScatteredLineBrush::BrushBegin(const Point source, const Point target) { ImpressionistDoc* pDoc = GetDocument(); ImpressionistUI* dlg = pDoc->m_pUI; int width = pDoc->getLineWidth(); glLineWidth(width); startCoord = Point(target.x, target.y); BrushMove(source, target); }
void LineBrush::BrushBegin( const Point source, const Point target ) { ImpressionistDoc* pDoc = GetDocument(); ImpressionistUI* dlg=pDoc->m_pUI; int lineWidth = pDoc->getLineWidth(); glLineWidth((GLfloat) lineWidth); pDoc->setLastPoint( source ); BrushMove( source, target ); }