[−][src]Struct libmpv_sys::mpv_opengl_init_params
For initializing the mpv OpenGL state via MPV_RENDER_PARAM_OPENGL_INIT_PARAMS.
Fields
get_proc_address: Option<unsafe extern "C" fn(ctx: *mut c_void, name: *const c_char) -> *mut c_void>
This retrieves OpenGL function pointers, and will use them in subsequent operation. Usually, you can simply call the GL context APIs from this callback (e.g. glXGetProcAddressARB or wglGetProcAddress), but some APIs do not always return pointers for all standard functions (even if present); in this case you have to compensate by looking up these functions yourself when libmpv wants to resolve them through this callback. libmpv will not normally attempt to resolve GL functions on its own, nor does it link to GL libraries directly.
get_proc_address_ctx: *mut c_void
Value passed as ctx parameter to get_proc_address().
extra_exts: *const c_char
This should not be used. It is deprecated and will be removed or ignored when the opengl_cb API is removed.
Trait Implementations
impl Clone for mpv_opengl_init_params
[src]
fn clone(&self) -> mpv_opengl_init_params
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for mpv_opengl_init_params
[src]
impl Debug for mpv_opengl_init_params
[src]
Auto Trait Implementations
impl RefUnwindSafe for mpv_opengl_init_params
impl !Send for mpv_opengl_init_params
impl !Sync for mpv_opengl_init_params
impl Unpin for mpv_opengl_init_params
impl UnwindSafe for mpv_opengl_init_params
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,