Struct glutin_glx_sys::glx_extra::Glx[][src]

pub struct Glx {
Show fields pub ChooseFBConfig: FnPtr, pub ChooseVisual: FnPtr, pub CopyContext: FnPtr, pub CreateContext: FnPtr, pub CreateContextAttribsARB: 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 GetSwapIntervalMESA: 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 SwapIntervalEXT: FnPtr, pub SwapIntervalMESA: FnPtr, pub SwapIntervalSGI: FnPtr, pub UseXFont: FnPtr, pub WaitGL: FnPtr, pub WaitX: FnPtr, // some fields omitted
}

Fields

ChooseFBConfig: FnPtrChooseVisual: FnPtrCopyContext: FnPtrCreateContext: FnPtrCreateContextAttribsARB: FnPtrCreateGLXPixmap: FnPtrCreateNewContext: FnPtrCreatePbuffer: FnPtrCreatePixmap: FnPtrCreateWindow: FnPtrDestroyContext: FnPtrDestroyGLXPixmap: FnPtrDestroyPbuffer: FnPtrDestroyPixmap: FnPtrDestroyWindow: FnPtrGetClientString: FnPtrGetConfig: FnPtrGetCurrentContext: FnPtrGetCurrentDisplay: FnPtrGetCurrentDrawable: FnPtrGetCurrentReadDrawable: FnPtrGetFBConfigAttrib: FnPtrGetFBConfigs: FnPtrGetProcAddress: FnPtrGetSelectedEvent: FnPtrGetSwapIntervalMESA: FnPtrGetVisualFromFBConfig: FnPtrIsDirect: FnPtrMakeContextCurrent: FnPtrMakeCurrent: FnPtrQueryContext: FnPtrQueryDrawable: FnPtrQueryExtension: FnPtrQueryExtensionsString: FnPtrQueryServerString: FnPtrQueryVersion: FnPtrSelectEvent: FnPtrSwapBuffers: FnPtrSwapIntervalEXT: FnPtrSwapIntervalMESA: FnPtrSwapIntervalSGI: FnPtrUseXFont: FnPtrWaitGL: FnPtrWaitX: FnPtr

Implementations

impl Glx[src]

pub fn load_with<F>(loadfn: F) -> Glx where
    F: FnMut(&'static str) -> *const c_void
[src]

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
[src]

pub unsafe fn ChooseVisual(
    &self,
    dpy: *mut Display,
    screen: c_int,
    attribList: *mut c_int
) -> *mut XVisualInfo
[src]

pub unsafe fn CopyContext(
    &self,
    dpy: *mut Display,
    src: GLXContext,
    dst: GLXContext,
    mask: c_ulong
)
[src]

pub unsafe fn CreateContext(
    &self,
    dpy: *mut Display,
    vis: *mut XVisualInfo,
    shareList: GLXContext,
    direct: Bool
) -> GLXContext
[src]

pub unsafe fn CreateContextAttribsARB(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    share_context: GLXContext,
    direct: Bool,
    attrib_list: *const c_int
) -> GLXContext
[src]

pub unsafe fn CreateGLXPixmap(
    &self,
    dpy: *mut Display,
    visual: *mut XVisualInfo,
    pixmap: Pixmap
) -> GLXPixmap
[src]

pub unsafe fn CreateNewContext(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    render_type: c_int,
    share_list: GLXContext,
    direct: Bool
) -> GLXContext
[src]

pub unsafe fn CreatePbuffer(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    attrib_list: *const c_int
) -> GLXPbuffer
[src]

pub unsafe fn CreatePixmap(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    pixmap: Pixmap,
    attrib_list: *const c_int
) -> GLXPixmap
[src]

pub unsafe fn CreateWindow(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    win: Window,
    attrib_list: *const c_int
) -> GLXWindow
[src]

pub unsafe fn DestroyContext(&self, dpy: *mut Display, ctx: GLXContext)[src]

pub unsafe fn DestroyGLXPixmap(&self, dpy: *mut Display, pixmap: GLXPixmap)[src]

pub unsafe fn DestroyPbuffer(&self, dpy: *mut Display, pbuf: GLXPbuffer)[src]

pub unsafe fn DestroyPixmap(&self, dpy: *mut Display, pixmap: GLXPixmap)[src]

pub unsafe fn DestroyWindow(&self, dpy: *mut Display, win: GLXWindow)[src]

pub unsafe fn GetClientString(
    &self,
    dpy: *mut Display,
    name: c_int
) -> *const c_char
[src]

pub unsafe fn GetConfig(
    &self,
    dpy: *mut Display,
    visual: *mut XVisualInfo,
    attrib: c_int,
    value: *mut c_int
) -> c_int
[src]

pub unsafe fn GetCurrentContext(&self) -> GLXContext[src]

pub unsafe fn GetCurrentDisplay(&self) -> *mut Display[src]

pub unsafe fn GetCurrentDrawable(&self) -> GLXDrawable[src]

pub unsafe fn GetCurrentReadDrawable(&self) -> GLXDrawable[src]

pub unsafe fn GetFBConfigAttrib(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig,
    attribute: c_int,
    value: *mut c_int
) -> c_int
[src]

pub unsafe fn GetFBConfigs(
    &self,
    dpy: *mut Display,
    screen: c_int,
    nelements: *mut c_int
) -> *mut GLXFBConfig
[src]

pub unsafe fn GetProcAddress(&self, procName: *const GLubyte) -> __GLXextFuncPtr[src]

pub unsafe fn GetSelectedEvent(
    &self,
    dpy: *mut Display,
    draw: GLXDrawable,
    event_mask: *mut c_ulong
)
[src]

pub unsafe fn GetSwapIntervalMESA(&self) -> c_int[src]

pub unsafe fn GetVisualFromFBConfig(
    &self,
    dpy: *mut Display,
    config: GLXFBConfig
) -> *mut XVisualInfo
[src]

pub unsafe fn IsDirect(&self, dpy: *mut Display, ctx: GLXContext) -> Bool[src]

pub unsafe fn MakeContextCurrent(
    &self,
    dpy: *mut Display,
    draw: GLXDrawable,
    read: GLXDrawable,
    ctx: GLXContext
) -> Bool
[src]

pub unsafe fn MakeCurrent(
    &self,
    dpy: *mut Display,
    drawable: GLXDrawable,
    ctx: GLXContext
) -> Bool
[src]

pub unsafe fn QueryContext(
    &self,
    dpy: *mut Display,
    ctx: GLXContext,
    attribute: c_int,
    value: *mut c_int
) -> c_int
[src]

pub unsafe fn QueryDrawable(
    &self,
    dpy: *mut Display,
    draw: GLXDrawable,
    attribute: c_int,
    value: *mut c_uint
)
[src]

pub unsafe fn QueryExtension(
    &self,
    dpy: *mut Display,
    errorb: *mut c_int,
    event: *mut c_int
) -> Bool
[src]

pub unsafe fn QueryExtensionsString(
    &self,
    dpy: *mut Display,
    screen: c_int
) -> *const c_char
[src]

pub unsafe fn QueryServerString(
    &self,
    dpy: *mut Display,
    screen: c_int,
    name: c_int
) -> *const c_char
[src]

pub unsafe fn QueryVersion(
    &self,
    dpy: *mut Display,
    maj: *mut c_int,
    min: *mut c_int
) -> Bool
[src]

pub unsafe fn SelectEvent(
    &self,
    dpy: *mut Display,
    draw: GLXDrawable,
    event_mask: c_ulong
)
[src]

pub unsafe fn SwapBuffers(&self, dpy: *mut Display, drawable: GLXDrawable)[src]

pub unsafe fn SwapIntervalEXT(
    &self,
    dpy: *mut Display,
    drawable: GLXDrawable,
    interval: c_int
)
[src]

pub unsafe fn SwapIntervalMESA(&self, interval: c_uint) -> c_int[src]

pub unsafe fn SwapIntervalSGI(&self, interval: c_int) -> c_int[src]

pub unsafe fn UseXFont(
    &self,
    font: Font,
    first: c_int,
    count: c_int,
    list: c_int
)
[src]

pub unsafe fn WaitGL(&self)[src]

pub unsafe fn WaitX(&self)[src]

Trait Implementations

impl Clone for Glx[src]

impl Send for Glx[src]

Auto Trait Implementations

impl RefUnwindSafe for Glx

impl !Sync for Glx

impl Unpin for Glx

impl UnwindSafe for Glx

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.