[][src]Struct x11_dl::glx::Glx

pub struct Glx {
    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(),
    // some fields omitted
}

Fields

glXChooseFBConfig: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *const c_int, _: *mut c_int) -> *mut GLXFBConfigglXChooseVisual: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut XVisualInfoglXCopyContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: GLXContext, _: c_ulong)glXCreateContext: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: GLXContext, _: c_int) -> GLXContextglXCreateGLXPixmap: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_ulong) -> c_ulongglXCreateNewContext: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: GLXContext, _: c_int) -> GLXContextglXCreatePbuffer: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: *const c_int) -> c_ulongglXCreatePixmap: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulongglXCreateWindow: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_ulong, _: *const c_int) -> c_ulongglXDestroyContext: 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_charglXGetConfig: unsafe extern "C" fn(_: *mut Display, _: *mut XVisualInfo, _: c_int, _: *mut c_int) -> c_intglXGetCurrentContext: unsafe extern "C" fn() -> GLXContextglXGetCurrentDisplay: unsafe extern "C" fn() -> *mut DisplayglXGetCurrentDrawable: unsafe extern "C" fn() -> c_ulongglXGetCurrentReadDrawable: unsafe extern "C" fn() -> c_ulongglXGetFBConfigAttrib: unsafe extern "C" fn(_: *mut Display, _: GLXFBConfig, _: c_int, _: *mut c_int) -> c_intglXGetFBConfigs: unsafe extern "C" fn(_: *mut Display, _: c_int, _: *mut c_int) -> *mut GLXFBConfigglXGetProcAddress: 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 XVisualInfoglXIsDirect: unsafe extern "C" fn(_: *mut Display, _: GLXContext) -> c_intglXMakeContextCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: GLXContext) -> c_intglXMakeCurrent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: GLXContext) -> c_intglXQueryContext: unsafe extern "C" fn(_: *mut Display, _: GLXContext, _: c_int, _: *mut c_int) -> c_intglXQueryDrawable: 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_intglXQueryExtensionsString: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *const c_charglXQueryServerString: unsafe extern "C" fn(_: *mut Display, _: c_int, _: c_int) -> *const c_charglXQueryVersion: unsafe extern "C" fn(_: *mut Display, _: *mut c_int, _: *mut c_int) -> c_intglXSelectEvent: 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()

Methods

impl Glx[src]

pub fn open() -> Result<Glx, OpenError>[src]

Trait Implementations

impl Sync for Glx[src]

impl Send for Glx[src]

Auto Trait Implementations

impl Unpin for Glx

impl UnwindSafe for Glx

impl RefUnwindSafe for Glx

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]