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: FnPtr
ChooseVisual: FnPtr
CopyContext: FnPtr
CreateContext: FnPtr
CreateContextAttribsARB: FnPtr
CreateGLXPixmap: FnPtr
CreateNewContext: FnPtr
CreatePbuffer: FnPtr
CreatePixmap: FnPtr
CreateWindow: FnPtr
DestroyContext: FnPtr
DestroyGLXPixmap: FnPtr
DestroyPbuffer: FnPtr
DestroyPixmap: FnPtr
DestroyWindow: FnPtr
GetClientString: FnPtr
GetConfig: FnPtr
GetCurrentContext: FnPtr
GetCurrentDisplay: FnPtr
GetCurrentDrawable: FnPtr
GetCurrentReadDrawable: FnPtr
GetFBConfigAttrib: FnPtr
GetFBConfigs: FnPtr
GetProcAddress: FnPtr
GetSelectedEvent: FnPtr
GetSwapIntervalMESA: FnPtr
GetVisualFromFBConfig: FnPtr
IsDirect: FnPtr
MakeContextCurrent: FnPtr
MakeCurrent: FnPtr
QueryContext: FnPtr
QueryDrawable: FnPtr
QueryExtension: FnPtr
QueryExtensionsString: FnPtr
QueryServerString: FnPtr
QueryVersion: FnPtr
SelectEvent: FnPtr
SwapBuffers: FnPtr
SwapIntervalEXT: FnPtr
SwapIntervalMESA: FnPtr
SwapIntervalSGI: FnPtr
UseXFont: FnPtr
WaitGL: FnPtr
WaitX: FnPtr
Implementations
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
.
ⓘ
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,