Struct dx::canvas::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).