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 packed or independent depth or stencil buffers, 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>
[src]
context: &GLContext<T>,
size: Size2D<i32>,
color_attachment_type: ColorAttachmentType
) -> Result<Self, &'static str>