Struct nanovg::ContextBuilder
[−]
[src]
pub struct ContextBuilder { /* fields omitted */ }
A builder that configures and constructs a NanoVG context.
Methods
impl ContextBuilder
[src]
pub fn new() -> Self
[src]
Create a new context builder.
pub fn antialias(self) -> Self
[src]
Enable antialiased rasterization. Not needed if you have multisampling enabled.
pub fn stencil_strokes(self) -> Self
[src]
Enable stencil strokes. Overlapping, stroked paths will only be drawn once, for a little performance loss.
pub fn debug(self) -> Self
[src]
Enable additional debug checks.
pub fn build(self) -> Result<Context, ()>
[src]
Construct the context. Make sure you have enabled one of the 4 OpenGL features, or this function will panic.