Struct osmesa_sys::OsMesa
[−]
pub struct OsMesa { pub OSMesaColorClamp: unsafe extern fn(enable: c_uchar), pub OSMesaCreateContext: unsafe extern fn(format: c_uint, sharelist: OSMesaContext) -> OSMesaContext, pub OSMesaCreateContextExt: unsafe extern fn(format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSMesaContext, pub OSMesaCreateContextAttribs: unsafe extern fn(attribList: *const c_int, sharelist: OSMesaContext) -> OSMesaContext, pub OSMesaDestroyContext: unsafe extern fn(ctx: OSMesaContext), pub OSMesaGetColorBuffer: unsafe extern 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 fn() -> OSMesaContext, pub OSMesaGetDepthBuffer: unsafe extern 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 fn(pname: c_int, value: *mut c_int), pub OSMesaGetProcAddress: unsafe extern fn(funcName: *const c_char) -> OSMESAproc, pub OSMesaMakeCurrent: unsafe extern fn(ctx: OSMesaContext, buffer: *mut c_void, _type: c_uint, width: c_int, height: c_int) -> c_uchar, pub OSMesaPixelStore: unsafe extern fn(pname: c_int, value: c_int), // some fields omitted }
Symbols loaded from a shared library.
Fields
OSMesaColorClamp: unsafe extern fn(enable: c_uchar)
OSMesaCreateContext: unsafe extern fn(format: c_uint, sharelist: OSMesaContext) -> OSMesaContext
OSMesaCreateContextExt: unsafe extern fn(format: c_uint, depthBits: c_int, stencilBits: c_int, accumBits: c_int, sharelist: OSMesaContext) -> OSMesaContext
OSMesaCreateContextAttribs: unsafe extern fn(attribList: *const c_int, sharelist: OSMesaContext) -> OSMesaContext
OSMesaDestroyContext: unsafe extern fn(ctx: OSMesaContext)
OSMesaGetColorBuffer: unsafe extern 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 fn() -> OSMesaContext
OSMesaGetDepthBuffer: unsafe extern 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 fn(pname: c_int, value: *mut c_int)
OSMesaGetProcAddress: unsafe extern fn(funcName: *const c_char) -> OSMESAproc
OSMesaMakeCurrent: unsafe extern fn(ctx: OSMesaContext, buffer: *mut c_void, _type: c_uint, width: c_int, height: c_int) -> c_uchar
OSMesaPixelStore: unsafe extern fn(pname: c_int, value: 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.