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]
Native: NativeGLContextMethods,
fn create(
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'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,
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
size: Size2D<i32>,
attributes: GLContextAttributes,
color_attachment_type: ColorAttachmentType,
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
fn with_default_color_attachment(
size: Size2D<i32>,
attributes: GLContextAttributes,
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
size: Size2D<i32>,
attributes: GLContextAttributes,
api_type: GlType,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>