Trait gstreamer_gl::prelude::GLDisplayExt [−][src]
pub trait GLDisplayExt: 'static { fn add_context<P: IsA<GLContext>>(
&self,
context: &P
) -> Result<(), BoolError>; fn create_context<P: IsA<GLContext>>(
&self,
other_context: &P
) -> Result<GLContext, Error>; fn create_window(&self) -> Result<GLWindow, BoolError>; fn filter_gl_api(&self, gl_api: GLAPI); fn gl_api(&self) -> GLAPI; fn gl_api_unlocked(&self) -> GLAPI; fn handle_type(&self) -> GLDisplayType; fn remove_context<P: IsA<GLContext>>(&self, context: &P); fn remove_window<P: IsA<GLWindow>>(
&self,
window: &P
) -> Result<(), BoolError>; fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Expand description
Required methods
It requires the display’s object lock to be held.
other_context
other GLContext
to share resources with.
Returns
whether a new context could be created.
p_context
resulting GLContext
fn filter_gl_api(&self, gl_api: GLAPI)
[src]
fn filter_gl_api(&self, gl_api: GLAPI)
[src]limit the use of OpenGL to the requested gl_api
. This is intended to allow
application and elements to request a specific set of OpenGL API’s based on
what they support. See GLContextExt::gl_api()
for the retrieving the
API supported by a GLContext
.
gl_api
a GLAPI
to filter with
fn gl_api_unlocked(&self) -> GLAPI
[src]fn handle_type(&self) -> GLDisplayType
[src]
fn handle_type(&self) -> GLDisplayType
[src]Returns
the GLDisplayType
of self
fn remove_context<P: IsA<GLContext>>(&self, context: &P)
[src]
fn remove_context<P: IsA<GLContext>>(&self, context: &P)
[src]This is supported on crate feature
v1_18
only.fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]Implementors
This is supported on crate feature
v1_18
only.fn connect_create_context<F: Fn(&Self, &GLContext) -> GLContext + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]