Struct osmesa_sys::OsMesa
[−]
pub struct OsMesa { pub OSMesaColorClamp: unsafe extern "C" fn(_: c_uchar), pub OSMesaCreateContext: unsafe extern "C" fn(_: c_uint, _: OSMesaContext) -> OSMesaContext, pub OSMesaCreateContextExt: unsafe extern "C" fn(_: c_uint, _: c_int, _: c_int, _: c_int, _: OSMesaContext) -> OSMesaContext, pub OSMesaCreateContextAttribs: unsafe extern "C" fn(_: *const c_int, _: OSMesaContext) -> OSMesaContext, pub OSMesaDestroyContext: unsafe extern "C" fn(_: OSMesaContext), pub OSMesaGetColorBuffer: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_void) -> c_uchar, pub OSMesaGetCurrentContext: unsafe extern "C" fn() -> OSMesaContext, pub OSMesaGetDepthBuffer: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_void) -> c_uchar, pub OSMesaGetIntegerv: unsafe extern "C" fn(_: c_int, _: *mut c_int), pub OSMesaGetProcAddress: unsafe extern "C" fn(_: *const c_char) -> OSMESAproc, pub OSMesaMakeCurrent: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_void, _: c_uint, _: c_int, _: c_int) -> c_uchar, pub OSMesaPixelStore: unsafe extern "C" fn(_: c_int, _: c_int), // some fields omitted }
Symbols loaded from a shared library.
Fields
OSMesaColorClamp: unsafe extern "C" fn(_: c_uchar)
OSMesaCreateContext: unsafe extern "C" fn(_: c_uint, _: OSMesaContext) -> OSMesaContext
OSMesaCreateContextExt: unsafe extern "C" fn(_: c_uint, _: c_int, _: c_int, _: c_int, _: OSMesaContext) -> OSMesaContext
OSMesaCreateContextAttribs: unsafe extern "C" fn(_: *const c_int, _: OSMesaContext) -> OSMesaContext
OSMesaDestroyContext: unsafe extern "C" fn(_: OSMesaContext)
OSMesaGetColorBuffer: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_void) -> c_uchar
OSMesaGetCurrentContext: unsafe extern "C" fn() -> OSMesaContext
OSMesaGetDepthBuffer: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_int, _: *mut c_int, _: *mut c_int, _: *mut *mut c_void) -> c_uchar
OSMesaGetIntegerv: unsafe extern "C" fn(_: c_int, _: *mut c_int)
OSMesaGetProcAddress: unsafe extern "C" fn(_: *const c_char) -> OSMESAproc
OSMesaMakeCurrent: unsafe extern "C" fn(_: OSMesaContext, _: *mut c_void, _: c_uint, _: c_int, _: c_int) -> c_uchar
OSMesaPixelStore: unsafe extern "C" fn(_: c_int, _: c_int)
Methods
impl OsMesa
fn open(path: &Path) -> Result<OsMesa, LoadingError>
Tries to open the dynamic library.
impl OsMesa
fn try_loading() -> Result<&'static OsMesa, LoadingError>
Try loading the static symbols linked to this library.