[−][src]Struct glutin_glx_sys::glx_extra::Glx
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: FnPtrImplementations
impl Glx[src]
pub fn load_with<F>(loadfn: F) -> Glx where
F: FnMut(&'static str) -> *const c_void, [src]
F: FnMut(&'static str) -> *const c_void,
Load each OpenGL symbol using a custom load function. This allows for the
use of functions like glfwGetProcAddress or SDL_GL_GetProcAddress.
ⓘThis example is not tested
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]
&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[src]
&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
)[src]
&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[src]
&self,
dpy: *mut Display,
vis: *mut XVisualInfo,
shareList: GLXContext,
direct: Bool
) -> GLXContext
pub unsafe fn CreateContextAttribsARB(
&self,
dpy: *mut Display,
config: GLXFBConfig,
share_context: GLXContext,
direct: Bool,
attrib_list: *const c_int
) -> GLXContext[src]
&self,
dpy: *mut Display,
config: GLXFBConfig,
share_context: GLXContext,
direct: Bool,
attrib_list: *const c_int
) -> GLXContext
pub unsafe fn CreateGLXPixmap(
&self,
dpy: *mut Display,
visual: *mut XVisualInfo,
pixmap: Pixmap
) -> GLXPixmap[src]
&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[src]
&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[src]
&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[src]
&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[src]
&self,
dpy: *mut Display,
config: GLXFBConfig,
win: Window,
attrib_list: *const c_int
) -> GLXWindow
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]
&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[src]
&self,
dpy: *mut Display,
visual: *mut XVisualInfo,
attrib: c_int,
value: *mut c_int
) -> c_int
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]
&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[src]
&self,
dpy: *mut Display,
screen: c_int,
nelements: *mut c_int
) -> *mut GLXFBConfig
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]
&self,
dpy: *mut Display,
draw: GLXDrawable,
event_mask: *mut c_ulong
)
pub unsafe fn GetSwapIntervalMESA(&self) -> c_int[src]
pub unsafe fn GetVisualFromFBConfig(
&self,
dpy: *mut Display,
config: GLXFBConfig
) -> *mut XVisualInfo[src]
&self,
dpy: *mut Display,
config: GLXFBConfig
) -> *mut XVisualInfo
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]
&self,
dpy: *mut Display,
draw: GLXDrawable,
read: GLXDrawable,
ctx: GLXContext
) -> Bool
pub unsafe fn MakeCurrent(
&self,
dpy: *mut Display,
drawable: GLXDrawable,
ctx: GLXContext
) -> Bool[src]
&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[src]
&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
)[src]
&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[src]
&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[src]
&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[src]
&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[src]
&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
)[src]
&self,
dpy: *mut Display,
draw: GLXDrawable,
event_mask: c_ulong
)
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]
&self,
dpy: *mut Display,
drawable: GLXDrawable,
interval: c_int
)
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]
&self,
font: Font,
first: c_int,
count: c_int,
list: c_int
)
pub unsafe fn WaitGL(&self)[src]
pub unsafe fn WaitX(&self)[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,