Trait cocoa::appkit::NSOpenGLContext

source ·
pub trait NSOpenGLContext: Sized {
Show 16 methods // Required methods unsafe fn initWithFormat_shareContext_( self, format: id, shareContext: id, ) -> id; unsafe fn initWithCGLContextObj_(self, context: CGLContextObj) -> id; unsafe fn clearCurrentContext(_: Self); unsafe fn currentContext(_: Self) -> id; unsafe fn makeCurrentContext(self); unsafe fn setView_(self, view: id); unsafe fn view(self) -> id; unsafe fn clearDrawable(self); unsafe fn update(self); unsafe fn flushBuffer(self); unsafe fn setValues_forParameter_( self, vals: *const GLint, param: NSOpenGLContextParameter, ); unsafe fn getValues_forParameter_( self, vals: *mut GLint, param: NSOpenGLContextParameter, ); unsafe fn setCurrentVirtualScreen_(self, screen: GLint); unsafe fn currentVirtualScreen(self) -> GLint; unsafe fn CGLContextObj(self) -> CGLContextObj; // Provided method unsafe fn alloc(_: Self) -> id { ... }
}

Required Methods§

source

unsafe fn initWithFormat_shareContext_(self, format: id, shareContext: id) -> id

source

unsafe fn initWithCGLContextObj_(self, context: CGLContextObj) -> id

source

unsafe fn clearCurrentContext(_: Self)

source

unsafe fn currentContext(_: Self) -> id

source

unsafe fn makeCurrentContext(self)

source

unsafe fn setView_(self, view: id)

source

unsafe fn view(self) -> id

source

unsafe fn clearDrawable(self)

source

unsafe fn update(self)

source

unsafe fn flushBuffer(self)

source

unsafe fn setValues_forParameter_( self, vals: *const GLint, param: NSOpenGLContextParameter, )

source

unsafe fn getValues_forParameter_( self, vals: *mut GLint, param: NSOpenGLContextParameter, )

source

unsafe fn setCurrentVirtualScreen_(self, screen: GLint)

source

unsafe fn currentVirtualScreen(self) -> GLint

source

unsafe fn CGLContextObj(self) -> CGLContextObj

Provided Methods§

source

unsafe fn alloc(_: Self) -> id

Object Safety§

This trait is not object safe.

Implementors§