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,
pub fn create(
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
[src]
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
[src]
pub fn get_proc_address(addr: &str) -> *const ()
[src]
pub fn current_handle() -> Option<Native::Handle>
[src]
pub fn new(
size: Size2D<i32>,
attributes: GLContextAttributes,
color_attachment_type: ColorAttachmentType,
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
[src]
size: Size2D<i32>,
attributes: GLContextAttributes,
color_attachment_type: ColorAttachmentType,
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
[src]
pub fn with_default_color_attachment(
size: Size2D<i32>,
attributes: GLContextAttributes,
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>
[src]
size: Size2D<i32>,
attributes: GLContextAttributes,
api_type: GlType,
api_version: GLVersion,
shared_with: Option<&Native::Handle>
) -> Result<Self, &'static str>