SvgRendererGl /

#includecinder/svg/SvgGl.h

Public Member Functions

  • SvgRendererGl ()
  • ~SvgRendererGl ()
  • void
    pushGroup (const svg::Group &group, float opacity)
  • void
    drawPath (const svg::Path &path) override
  • void
    drawPolygon (const svg::Polygon &polygon) override
  • void
    drawPolyline (const svg::Polyline &polyline) override
  • void
    drawLine (const svg::Line &line) override
  • void
    drawRect (const svg::Rect &rect) override
  • void
    drawCircle (const svg::Circle &circle) override
  • void
    drawEllipse (const svg::Ellipse &ellipse) override
  • void
    drawImage (const Surface8u &surface, const Rectf &drawRect)
  • void
    drawTextSpan (const svg::TextSpan &span) override
  • void
    popGroup () override
  • void
    pushMatrix (const mat3 &m) override
  • void
    popMatrix () override
  • void
    pushFill (const svg::Paint &paint) override
  • void
    popFill () override
  • void
    pushStroke (const svg::Paint &paint) override
  • void
    popStroke () override
  • void
    pushFillOpacity (float opacity) override
  • void
    popFillOpacity () override
  • void
    pushStrokeOpacity (float opacity) override
  • void
    popStrokeOpacity () override
  • getCurFillColor ()
  • getCurStrokeColor ()
  • void
    pushStrokeWidth (float width) override
  • void
    popStrokeWidth () override
  • void
    pushFillRule (svg::FillRule rule) override
  • void
    popFillRule () override
  • void
    setVisitor (const std::function< bool(const Node &, svg::Style *)> &visitor)
  • void
    drawImage (const svg::Image &)
  • void
    pushStyle (const svg::Style &)
  • void
    popStyle ()
  • void
    pushFill (const class Paint &)
  • void
    pushStroke (const class Paint &)
  • void
    pushLineCap (LineCap)
  • void
    popLineCap ()
  • void
    pushLineJoin (LineJoin)
  • void
    popLineJoin ()
  • void
    pushTextPen (const vec2 &)
  • void
    popTextPen ()
  • void
    pushTextRotation (float)
  • void
    popTextRotation ()
  • bool
    visit (const Node &node, svg::Style *style) const

Protected Attributes

  • std::shared_ptr< std::function< bool(const Node &, svg::Style *)> >
    mVisitor