Struct nanovg::ContextBuilder[][src]

pub struct ContextBuilder { /* fields omitted */ }

A builder that configures and constructs a NanoVG context.

Methods

impl ContextBuilder
[src]

Create a new context builder.

Enable antialiased rasterization. Not needed if you have multisampling enabled.

Enable stencil strokes. Overlapping, stroked paths will only be drawn once, for a little performance loss.

Enable additional debug checks.

Construct the context. Make sure you have enabled one of the 4 OpenGL features, or this function will panic.

Trait Implementations

impl Debug for ContextBuilder
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations