NanoVG group

Enums

nvg::LineCapType

nvg::LineCapType::Butt = 0
nvg::LineCapType::Round = 1
nvg::LineCapType::Square = 2
nvg::LineCapType::Bevel = 3
nvg::LineCapType::Miter = 4

nvg::Winding

nvg::Winding::CCW = 1
nvg::Winding::CW = 2
Classes

nvg::Paint

A paint style that can be used as a fill or a stroke.
Global functions

void nvg::Save()

void nvg::Restore()

void nvg::Reset()

void nvg::ShapeAntiAlias(bool enabled)

void nvg::StrokeColor(const vec4&in color)

void nvg::StrokePaint(const nvg::Paint&in paint)

void nvg::FillColor(const vec4&in color)

void nvg::FillPaint(const nvg::Paint&in paint)

void nvg::MiterLimit(float limit)

void nvg::StrokeWidth(float size)

void nvg::LineCap(nvg::LineCapType cap)

void nvg::LineJoin(nvg::LineCapType join)

void nvg::GlobalAlpha(float alpha)

void nvg::ResetTransform()

void nvg::Transform(const mat3&in t)

void nvg::Translate(float x, float y)

void nvg::Rotate(float angle)

void nvg::SkewX(float angle)

void nvg::SkewY(float angle)

void nvg::Scale(float x, float y)

nvg::Paint nvg::LinearGradient(const vec2&in start, const vec2&in end, const vec4&in color1, const vec4&in color2)

nvg::Paint nvg::BoxGradient(float x, float y, float w, float h, float r, float f, const vec4&in color1, const vec4&in color2)

nvg::Paint nvg::RadialGradient(const vec2&in center, float inr, float outr, const vec4&in color1, const vec4&in color2)

void nvg::Scissor(float x, float y, float w, float h)

void nvg::IntersectScissor(float x, float y, float w, float h)

void nvg::ResetScissor()

void nvg::BeginPath()

void nvg::MoveTo(const vec2&in pos)

void nvg::LineTo(const vec2&in pos)

void nvg::BezierTo(const vec2&in c1, const vec2&in c2, const vec2&in pos)

void nvg::QuadTo(const vec2&in c, const vec2&in pos)

void nvg::ArcTo(const vec2&in pos1, const vec2&in pos2, float radius)

void nvg::ClosePath()

void nvg::PathWinding(nvg::Winding dir)

void nvg::Arc(const vec2&in center, float r, float a0, float a1, nvg::Winding dir)

void nvg::Rect(float x, float y, float w, float h)

void nvg::RoundedRect(float x, float y, float w, float h, float r)

void nvg::RoundedRectVarying(float x, float y, float w, float h, float rtl, float rtr, float rbr, float rbl)

void nvg::Ellipse(const vec2&in center, float rx, float ry)

void nvg::Circle(const vec2&in center, float r)

void nvg::Fill()

void nvg::Stroke()