pub struct Glx {Show 39 fields
pub ChooseFBConfig: FnPtr,
pub ChooseVisual: FnPtr,
pub CopyContext: FnPtr,
pub CreateContext: FnPtr,
pub CreateGLXPixmap: FnPtr,
pub CreateNewContext: FnPtr,
pub CreatePbuffer: FnPtr,
pub CreatePixmap: FnPtr,
pub CreateWindow: FnPtr,
pub DestroyContext: FnPtr,
pub DestroyGLXPixmap: FnPtr,
pub DestroyPbuffer: FnPtr,
pub DestroyPixmap: FnPtr,
pub DestroyWindow: FnPtr,
pub GetClientString: FnPtr,
pub GetConfig: FnPtr,
pub GetCurrentContext: FnPtr,
pub GetCurrentDisplay: FnPtr,
pub GetCurrentDrawable: FnPtr,
pub GetCurrentReadDrawable: FnPtr,
pub GetFBConfigAttrib: FnPtr,
pub GetFBConfigs: FnPtr,
pub GetProcAddress: FnPtr,
pub GetSelectedEvent: FnPtr,
pub GetVisualFromFBConfig: FnPtr,
pub IsDirect: FnPtr,
pub MakeContextCurrent: FnPtr,
pub MakeCurrent: FnPtr,
pub QueryContext: FnPtr,
pub QueryDrawable: FnPtr,
pub QueryExtension: FnPtr,
pub QueryExtensionsString: FnPtr,
pub QueryServerString: FnPtr,
pub QueryVersion: FnPtr,
pub SelectEvent: FnPtr,
pub SwapBuffers: FnPtr,
pub UseXFont: FnPtr,
pub WaitGL: FnPtr,
pub WaitX: FnPtr,
/* private fields */
}
Fields§
§ChooseFBConfig: FnPtr
§ChooseVisual: FnPtr
§CopyContext: FnPtr
§CreateContext: FnPtr
§CreateGLXPixmap: FnPtr
§CreateNewContext: FnPtr
§CreatePbuffer: FnPtr
§CreatePixmap: FnPtr
§CreateWindow: FnPtr
§DestroyContext: FnPtr
§DestroyGLXPixmap: FnPtr
§DestroyPbuffer: FnPtr
§DestroyPixmap: FnPtr
§DestroyWindow: FnPtr
§GetClientString: FnPtr
§GetConfig: FnPtr
§GetCurrentContext: FnPtr
§GetCurrentDisplay: FnPtr
§GetCurrentDrawable: FnPtr
§GetCurrentReadDrawable: FnPtr
§GetFBConfigAttrib: FnPtr
§GetFBConfigs: FnPtr
§GetProcAddress: FnPtr
§GetSelectedEvent: FnPtr
§GetVisualFromFBConfig: FnPtr
§IsDirect: FnPtr
§MakeContextCurrent: FnPtr
§MakeCurrent: FnPtr
§QueryContext: FnPtr
§QueryDrawable: FnPtr
§QueryExtension: FnPtr
§QueryExtensionsString: FnPtr
§QueryServerString: FnPtr
§QueryVersion: FnPtr
§SelectEvent: FnPtr
§SwapBuffers: FnPtr
§UseXFont: FnPtr
§WaitGL: FnPtr
§WaitX: FnPtr
Implementations§
Source§impl Glx
impl Glx
Sourcepub fn load_with<F>(loadfn: F) -> Glx
pub fn load_with<F>(loadfn: F) -> Glx
Load each OpenGL symbol using a custom load function. This allows for the
use of functions like glfwGetProcAddress
or SDL_GL_GetProcAddress
.
ⓘ
let gl = Gl::load_with(|s| glfw.get_proc_address(s));
pub unsafe fn ChooseFBConfig( &self, dpy: *mut Display, screen: c_int, attrib_list: *const c_int, nelements: *mut c_int, ) -> *mut GLXFBConfig
pub unsafe fn ChooseVisual( &self, dpy: *mut Display, screen: c_int, attribList: *mut c_int, ) -> *mut XVisualInfo
pub unsafe fn CopyContext( &self, dpy: *mut Display, src: GLXContext, dst: GLXContext, mask: c_ulong, )
pub unsafe fn CreateContext( &self, dpy: *mut Display, vis: *mut XVisualInfo, shareList: GLXContext, direct: Bool, ) -> GLXContext
pub unsafe fn CreateGLXPixmap( &self, dpy: *mut Display, visual: *mut XVisualInfo, pixmap: Pixmap, ) -> GLXPixmap
pub unsafe fn CreateNewContext( &self, dpy: *mut Display, config: GLXFBConfig, render_type: c_int, share_list: GLXContext, direct: Bool, ) -> GLXContext
pub unsafe fn CreatePbuffer( &self, dpy: *mut Display, config: GLXFBConfig, attrib_list: *const c_int, ) -> GLXPbuffer
pub unsafe fn CreatePixmap( &self, dpy: *mut Display, config: GLXFBConfig, pixmap: Pixmap, attrib_list: *const c_int, ) -> GLXPixmap
pub unsafe fn CreateWindow( &self, dpy: *mut Display, config: GLXFBConfig, win: Window, attrib_list: *const c_int, ) -> GLXWindow
pub unsafe fn DestroyContext(&self, dpy: *mut Display, ctx: GLXContext)
pub unsafe fn DestroyGLXPixmap(&self, dpy: *mut Display, pixmap: GLXPixmap)
pub unsafe fn DestroyPbuffer(&self, dpy: *mut Display, pbuf: GLXPbuffer)
pub unsafe fn DestroyPixmap(&self, dpy: *mut Display, pixmap: GLXPixmap)
pub unsafe fn DestroyWindow(&self, dpy: *mut Display, win: GLXWindow)
pub unsafe fn GetClientString( &self, dpy: *mut Display, name: c_int, ) -> *const c_char
pub unsafe fn GetConfig( &self, dpy: *mut Display, visual: *mut XVisualInfo, attrib: c_int, value: *mut c_int, ) -> c_int
pub unsafe fn GetCurrentContext(&self) -> GLXContext
pub unsafe fn GetCurrentDisplay(&self) -> *mut Display
pub unsafe fn GetCurrentDrawable(&self) -> GLXDrawable
pub unsafe fn GetCurrentReadDrawable(&self) -> GLXDrawable
pub unsafe fn GetFBConfigAttrib( &self, dpy: *mut Display, config: GLXFBConfig, attribute: c_int, value: *mut c_int, ) -> c_int
pub unsafe fn GetFBConfigs( &self, dpy: *mut Display, screen: c_int, nelements: *mut c_int, ) -> *mut GLXFBConfig
pub unsafe fn GetProcAddress(&self, procName: *const GLubyte) -> __GLXextFuncPtr
pub unsafe fn GetSelectedEvent( &self, dpy: *mut Display, draw: GLXDrawable, event_mask: *mut c_ulong, )
pub unsafe fn GetVisualFromFBConfig( &self, dpy: *mut Display, config: GLXFBConfig, ) -> *mut XVisualInfo
pub unsafe fn IsDirect(&self, dpy: *mut Display, ctx: GLXContext) -> Bool
pub unsafe fn MakeContextCurrent( &self, dpy: *mut Display, draw: GLXDrawable, read: GLXDrawable, ctx: GLXContext, ) -> Bool
pub unsafe fn MakeCurrent( &self, dpy: *mut Display, drawable: GLXDrawable, ctx: GLXContext, ) -> Bool
pub unsafe fn QueryContext( &self, dpy: *mut Display, ctx: GLXContext, attribute: c_int, value: *mut c_int, ) -> c_int
pub unsafe fn QueryDrawable( &self, dpy: *mut Display, draw: GLXDrawable, attribute: c_int, value: *mut c_uint, )
pub unsafe fn QueryExtension( &self, dpy: *mut Display, errorb: *mut c_int, event: *mut c_int, ) -> Bool
pub unsafe fn QueryExtensionsString( &self, dpy: *mut Display, screen: c_int, ) -> *const c_char
pub unsafe fn QueryServerString( &self, dpy: *mut Display, screen: c_int, name: c_int, ) -> *const c_char
pub unsafe fn QueryVersion( &self, dpy: *mut Display, maj: *mut c_int, min: *mut c_int, ) -> Bool
pub unsafe fn SelectEvent( &self, dpy: *mut Display, draw: GLXDrawable, event_mask: c_ulong, )
pub unsafe fn SwapBuffers(&self, dpy: *mut Display, drawable: GLXDrawable)
pub unsafe fn UseXFont( &self, font: Font, first: c_int, count: c_int, list: c_int, )
pub unsafe fn WaitGL(&self)
pub unsafe fn WaitX(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glx
impl RefUnwindSafe for Glx
impl !Sync for Glx
impl Unpin for Glx
impl UnwindSafe for Glx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more