glutin_glx_sys::glx

Struct Glx

Source
pub struct Glx {
Show 39 fields pub ChooseFBConfig: FnPtr, pub ChooseVisual: FnPtr, pub CopyContext: FnPtr, pub CreateContext: 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 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 UseXFont: FnPtr, pub WaitGL: FnPtr, pub WaitX: FnPtr, /* private fields */
}

Fields§

§ChooseFBConfig: FnPtr§ChooseVisual: FnPtr§CopyContext: FnPtr§CreateContext: 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§GetVisualFromFBConfig: FnPtr§IsDirect: FnPtr§MakeContextCurrent: FnPtr§MakeCurrent: FnPtr§QueryContext: FnPtr§QueryDrawable: FnPtr§QueryExtension: FnPtr§QueryExtensionsString: FnPtr§QueryServerString: FnPtr§QueryVersion: FnPtr§SelectEvent: FnPtr§SwapBuffers: FnPtr§UseXFont: FnPtr§WaitGL: FnPtr§WaitX: FnPtr

Implementations§

Source§

impl Glx

Source

pub fn load_with<F>(loadfn: F) -> Glx
where 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));
Source

pub unsafe fn ChooseFBConfig( &self, dpy: *mut Display, screen: c_int, attrib_list: *const c_int, nelements: *mut c_int, ) -> *mut GLXFBConfig

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub unsafe fn GetCurrentContext(&self) -> GLXContext

Source

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

Source

pub unsafe fn GetCurrentDrawable(&self) -> GLXDrawable

Source

pub unsafe fn GetCurrentReadDrawable(&self) -> GLXDrawable

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub unsafe fn WaitGL(&self)

Source

pub unsafe fn WaitX(&self)

Trait Implementations§

Source§

impl Clone for Glx

Source§

fn clone(&self) -> Glx

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Send for Glx

Auto Trait Implementations§

§

impl Freeze for Glx

§

impl RefUnwindSafe for Glx

§

impl !Sync 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.