예제 #1
0
파일: lineBrush.cpp 프로젝트: sfpotter/imp
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);
}
예제 #3
0
파일: lineBrush.cpp 프로젝트: rapidsnow/imp
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 );
}