OsMesa

Struct OsMesa 

Source
pub struct OsMesa {
    pub OSMesaColorClamp: unsafe extern "C" fn(enable: c_uchar),
    pub OSMesaCreateContext: unsafe extern "C" fn(format: c_uint, sharelist: OSMesaContext) -> OSMesaContext,
    pub OSMesaCreateContextExt: unsafe extern "C" fn(format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSMesaContext,
    pub OSMesaCreateContextAttribs: unsafe extern "C" fn(attribList: *const c_int, sharelist: OSMesaContext) -> OSMesaContext,
    pub OSMesaDestroyContext: unsafe extern "C" fn(ctx: OSMesaContext),
    pub OSMesaGetColorBuffer: unsafe extern "C" fn(c: OSMesaContext, width: *mut c_int, height: *mut c_int, format: *mut c_int, buffer: *mut *mut c_void) -> c_uchar,
    pub OSMesaGetCurrentContext: unsafe extern "C" fn() -> OSMesaContext,
    pub OSMesaGetDepthBuffer: unsafe extern "C" fn(c: OSMesaContext, width: *mut c_int, height: *mut c_int, bytesPerValue: *mut c_int, buffer: *mut *mut c_void) -> c_uchar,
    pub OSMesaGetIntegerv: unsafe extern "C" fn(pname: c_int, value: *mut c_int),
    pub OSMesaGetProcAddress: unsafe extern "C" fn(funcName: *const c_char) -> OSMESAproc,
    pub OSMesaMakeCurrent: unsafe extern "C" fn(ctx: OSMesaContext, buffer: *mut c_void, _type: c_uint, width: c_int, height: c_int) -> c_uchar,
    pub OSMesaPixelStore: unsafe extern "C" fn(pname: c_int, value: c_int),
    /* private fields */
}
Expand description

Symbols loaded from a shared library.

Fields§

§OSMesaColorClamp: unsafe extern "C" fn(enable: c_uchar)§OSMesaCreateContext: unsafe extern "C" fn(format: c_uint, sharelist: OSMesaContext) -> OSMesaContext§OSMesaCreateContextExt: unsafe extern "C" fn(format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSMesaContext§OSMesaCreateContextAttribs: unsafe extern "C" fn(attribList: *const c_int, sharelist: OSMesaContext) -> OSMesaContext§OSMesaDestroyContext: unsafe extern "C" fn(ctx: OSMesaContext)§OSMesaGetColorBuffer: unsafe extern "C" fn(c: OSMesaContext, width: *mut c_int, height: *mut c_int, format: *mut c_int, buffer: *mut *mut c_void) -> c_uchar§OSMesaGetCurrentContext: unsafe extern "C" fn() -> OSMesaContext§OSMesaGetDepthBuffer: unsafe extern "C" fn(c: OSMesaContext, width: *mut c_int, height: *mut c_int, bytesPerValue: *mut c_int, buffer: *mut *mut c_void) -> c_uchar§OSMesaGetIntegerv: unsafe extern "C" fn(pname: c_int, value: *mut c_int)§OSMesaGetProcAddress: unsafe extern "C" fn(funcName: *const c_char) -> OSMESAproc§OSMesaMakeCurrent: unsafe extern "C" fn(ctx: OSMesaContext, buffer: *mut c_void, _type: c_uint, width: c_int, height: c_int) -> c_uchar§OSMesaPixelStore: unsafe extern "C" fn(pname: c_int, value: c_int)

Implementations§

Source§

impl OsMesa

Source

pub fn open(path: &Path) -> Result<OsMesa, LoadingError>

Tries to open the dynamic library.

Source§

impl OsMesa

Source

pub fn try_loading() -> Result<&'static OsMesa, LoadingError>

Try loading the static symbols linked to this library.

Auto Trait Implementations§

§

impl Freeze for OsMesa

§

impl RefUnwindSafe for OsMesa

§

impl Send for OsMesa

§

impl Sync for OsMesa

§

impl Unpin for OsMesa

§

impl UnwindSafe for OsMesa

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