Struct femtovg::renderer::OpenGl[][src]

pub struct OpenGl { /* fields omitted */ }

Implementations

Make the “Screen” RenderTarget actually render to a framebuffer object. This is useful when embedding femtovg into another program where final composition is handled by an external task. The given framebuffer_object must refer to a Framebuffer Object created on the current OpenGL Context, and must have a depth & stencil attachment.

Pass None to clear any previous Framebuffer Object ID that was passed and target rendering to the default target (normally the window).

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.