Struct femtovg::renderer::OpenGl [−][src]
pub struct OpenGl { /* fields omitted */ }
Implementations
pub fn set_screen_target(
&mut self,
framebuffer_object: Option<<Context as HasContext>::Framebuffer>
)
pub fn set_screen_target(
&mut self,
framebuffer_object: Option<<Context as HasContext>::Framebuffer>
)
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
Auto Trait Implementations
impl !RefUnwindSafe for OpenGl
impl !UnwindSafe for OpenGl