Struct offscreen_gl_context::DrawBuffer
[−]
[src]
pub struct DrawBuffer { /* fields omitted */ }
This structure represents an offscreen context draw buffer. It has a framebuffer, with at least color renderbuffer (alpha or not). It may also have a depth or stencil buffer, depending on context requirements.
Methods
impl DrawBuffer
[src]
fn new<T: NativeGLContextMethods>(context: &GLContext<T>,
size: Size2D<i32>,
color_attachment_type: ColorAttachmentType)
-> Result<Self, &'static str>
size: Size2D<i32>,
color_attachment_type: ColorAttachmentType)
-> Result<Self, &'static str>