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§

source§

impl Send for Glx

source§

impl Sync for Glx

Auto Trait Implementations§

§

impl RefUnwindSafe for Glx

§

impl Unpin for Glx

§

impl UnwindSafe for Glx

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.