glutin::api::glx

Struct Glx

Source
pub struct Glx(pub SymWrapper<Glx>);
Expand description

GLX interface.

Tuple Fields§

§0: SymWrapper<Glx>

Methods from Deref<Target = Glx>§

Source

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

Source

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

Source

pub unsafe fn CopyContext( &self, dpy: *mut Display, src: *const c_void, dst: *const c_void, mask: u64, )

Source

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

Source

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

Source

pub unsafe fn CreateNewContext( &self, dpy: *mut Display, config: *const c_void, render_type: i32, share_list: *const c_void, direct: i32, ) -> *const c_void

Source

pub unsafe fn CreatePbuffer( &self, dpy: *mut Display, config: *const c_void, attrib_list: *const i32, ) -> u64

Source

pub unsafe fn CreatePixmap( &self, dpy: *mut Display, config: *const c_void, pixmap: u64, attrib_list: *const i32, ) -> u64

Source

pub unsafe fn CreateWindow( &self, dpy: *mut Display, config: *const c_void, win: u64, attrib_list: *const i32, ) -> u64

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub unsafe fn GetCurrentContext(&self) -> *const c_void

Source

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

Source

pub unsafe fn GetCurrentDrawable(&self) -> u64

Source

pub unsafe fn GetCurrentReadDrawable(&self) -> u64

Source

pub unsafe fn GetFBConfigAttrib( &self, dpy: *mut Display, config: *const c_void, attribute: i32, value: *mut i32, ) -> i32

Source

pub unsafe fn GetFBConfigs( &self, dpy: *mut Display, screen: i32, nelements: *mut i32, ) -> *mut *const c_void

Source

pub unsafe fn GetProcAddress( &self, procName: *const u8, ) -> *mut __GLXextFuncPtr_fn

Source

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

Source

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

Source

pub unsafe fn IsDirect(&self, dpy: *mut Display, ctx: *const c_void) -> i32

Source

pub unsafe fn MakeContextCurrent( &self, dpy: *mut Display, draw: u64, read: u64, ctx: *const c_void, ) -> i32

Source

pub unsafe fn MakeCurrent( &self, dpy: *mut Display, drawable: u64, ctx: *const c_void, ) -> i32

Source

pub unsafe fn QueryContext( &self, dpy: *mut Display, ctx: *const c_void, attribute: i32, value: *mut i32, ) -> i32

Source

pub unsafe fn QueryDrawable( &self, dpy: *mut Display, draw: u64, attribute: i32, value: *mut u32, )

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub unsafe fn UseXFont(&self, font: u64, first: i32, count: i32, list: i32)

Source

pub unsafe fn WaitGL(&self)

Source

pub unsafe fn WaitX(&self)

Trait Implementations§

Source§

impl Deref for Glx

Source§

type Target = Glx

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Glx

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Send for Glx

Source§

impl Sync for Glx

Auto Trait Implementations§

§

impl Freeze for Glx

§

impl RefUnwindSafe 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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.