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§
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 Methods§
Object Safety§
This trait is not object safe.