Struct x11_dl::glx::Glx

source ·
pub struct Glx {
Show 40 fields pub glXChooseFBConfig: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_int, _: *mut c_int) -> *mut GLXFBConfig, pub glXChooseVisual: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut XVisualInfo, pub glXCopyContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: GLXContext, _: c_ulong), pub glXCreateContext: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: GLXContext, _: c_int) -> GLXContext, pub glXCreateGLXPixmap: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_ulong) -> c_ulong, pub glXCreateNewContext: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: GLXContext, _: c_int) -> GLXContext, pub glXCreatePbuffer: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: *const c_int) -> c_ulong, pub glXCreatePixmap: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulong, pub glXCreateWindow: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulong, pub glXDestroyContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext), pub glXDestroyGLXPixmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong), pub glXDestroyPbuffer: unsafe extern "C" fn(_: *mut Display, _: c_ulong), pub glXDestroyPixmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong), pub glXDestroyWindow: unsafe extern "C" fn(_: *mut Display, _: c_ulong), pub glXGetClientString: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *const c_char, pub glXGetConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_int, _: *mut c_int) -> c_int, pub glXGetCurrentContext: unsafe extern "C" fn() -> GLXContext, pub glXGetCurrentDisplay: unsafe extern "C" fn() -> *mut Display, pub glXGetCurrentDrawable: unsafe extern "C" fn() -> c_ulong, pub glXGetCurrentReadDrawable: unsafe extern "C" fn() -> c_ulong, pub glXGetFBConfigAttrib: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: *mut c_int) -> c_int, pub glXGetFBConfigs: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut GLXFBConfig, pub glXGetProcAddress: unsafe extern "C" fn(_: *const c_uchar) -> Option<unsafe extern "C" fn()>, pub glXGetProcAddressARB: unsafe extern "C" fn(_: *const c_uchar) -> Option<unsafe extern "C" fn()>, pub glXGetSelectedEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_ulong), pub glXGetVisualFromFBConfig: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig) -> *mut XVisualInfo, pub glXIsDirect: unsafe extern "C" fn(_: *mut Display, _: GLXContext) -> c_int, pub glXMakeContextCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: GLXContext) -> c_int, pub glXMakeCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: GLXContext) -> c_int, pub glXQueryContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: c_int, _: *mut c_int) -> c_int, pub glXQueryDrawable: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int, _: *mut c_uint), pub glXQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int, pub glXQueryExtensionsString: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *const c_char, pub glXQueryServerString: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> *const c_char, pub glXQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int, pub glXSelectEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong), pub glXSwapBuffers: unsafe extern "C" fn(_: *mut Display, _: c_ulong), pub glXUseXFont: unsafe extern "C" fn(_: c_ulong, _: c_int, _: c_int, _: c_int), pub glXWaitGL: unsafe extern "C" fn(), pub glXWaitX: unsafe extern "C" fn(), /* private fields */
}

Fields§

§glXChooseFBConfig: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_int, _: *mut c_int) -> *mut GLXFBConfig§glXChooseVisual: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut XVisualInfo§glXCopyContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: GLXContext, _: c_ulong)§glXCreateContext: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: GLXContext, _: c_int) -> GLXContext§glXCreateGLXPixmap: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_ulong) -> c_ulong§glXCreateNewContext: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: GLXContext, _: c_int) -> GLXContext§glXCreatePbuffer: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: *const c_int) -> c_ulong§glXCreatePixmap: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulong§glXCreateWindow: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulong§glXDestroyContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext)§glXDestroyGLXPixmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong)§glXDestroyPbuffer: unsafe extern "C" fn(_: *mut Display, _: c_ulong)§glXDestroyPixmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong)§glXDestroyWindow: unsafe extern "C" fn(_: *mut Display, _: c_ulong)§glXGetClientString: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *const c_char§glXGetConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_int, _: *mut c_int) -> c_int§glXGetCurrentContext: unsafe extern "C" fn() -> GLXContext§glXGetCurrentDisplay: unsafe extern "C" fn() -> *mut Display§glXGetCurrentDrawable: unsafe extern "C" fn() -> c_ulong§glXGetCurrentReadDrawable: unsafe extern "C" fn() -> c_ulong§glXGetFBConfigAttrib: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: *mut c_int) -> c_int§glXGetFBConfigs: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut GLXFBConfig§glXGetProcAddress: unsafe extern "C" fn(_: *const c_uchar) -> Option<unsafe extern "C" fn()>§glXGetProcAddressARB: unsafe extern "C" fn(_: *const c_uchar) -> Option<unsafe extern "C" fn()>§glXGetSelectedEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_ulong)§glXGetVisualFromFBConfig: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig) -> *mut XVisualInfo§glXIsDirect: unsafe extern "C" fn(_: *mut Display, _: GLXContext) -> c_int§glXMakeContextCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: GLXContext) -> c_int§glXMakeCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: GLXContext) -> c_int§glXQueryContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: c_int, _: *mut c_int) -> c_int§glXQueryDrawable: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int, _: *mut c_uint)§glXQueryExtension: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int§glXQueryExtensionsString: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *const c_char§glXQueryServerString: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> *const c_char§glXQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_int§glXSelectEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong)§glXSwapBuffers: unsafe extern "C" fn(_: *mut Display, _: c_ulong)§glXUseXFont: unsafe extern "C" fn(_: c_ulong, _: c_int, _: c_int, _: c_int)§glXWaitGL: unsafe extern "C" fn()§glXWaitX: unsafe extern "C" fn()

Implementations§

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.