Struct offscreen_gl_context::GLContext
[−]
[src]
pub struct GLContext<Native> { /* fields omitted */ }
This is a wrapper over a native headless GL context
Methods
impl<Native> GLContext<Native> where Native: NativeGLContextMethods
[src]
fn create(shared_with: Option<&Native::Handle>)
-> Result<GLContext<Native>, &'static str>
-> Result<GLContext<Native>, &'static str>
fn get_proc_address(addr: &str) -> *const ()
fn current_handle() -> Option<Native::Handle>
fn new(size: Size2D<i32>,
attributes: GLContextAttributes,
color_attachment_type: ColorAttachmentType,
shared_with: Option<&Native::Handle>)
-> Result<GLContext<Native>, &'static str>
attributes: GLContextAttributes,
color_attachment_type: ColorAttachmentType,
shared_with: Option<&Native::Handle>)
-> Result<GLContext<Native>, &'static str>
fn with_default_color_attachment(size: Size2D<i32>,
attributes: GLContextAttributes,
shared_with: Option<&Native::Handle>)
-> Result<GLContext<Native>, &'static str>
attributes: GLContextAttributes,
shared_with: Option<&Native::Handle>)
-> Result<GLContext<Native>, &'static str>