[][src]Struct gstreamer_gl::GLFramebuffer

pub struct GLFramebuffer(_, _);

A GLFramebuffer represents and holds an OpenGL framebuffer object with it's associated attachments.

A GLFramebuffer can be created with GLFramebuffer::new or GLFramebuffer::new_with_default_depth and bound with GLFramebufferExt::bind. Other resources can be bound with GLFramebufferExt::attach

Note: OpenGL framebuffers are not shareable resources so cannot be used between multiple OpenGL contexts.

Implements

GLFramebufferExt, gst::ObjectExt, glib::object::ObjectExt

Implementations

impl GLFramebuffer[src]

pub fn new<P: IsA<GLContext>>(context: &P) -> GLFramebuffer[src]

context

a GLContext

Returns

a new GLFramebuffer

pub fn with_default_depth<P: IsA<GLContext>>(
    context: &P,
    width: u32,
    height: u32
) -> GLFramebuffer
[src]

Trait Implementations

impl Clone for GLFramebuffer[src]

impl Debug for GLFramebuffer[src]

impl Eq for GLFramebuffer[src]

impl Hash for GLFramebuffer[src]

impl IsA<Object> for GLFramebuffer[src]

impl Ord for GLFramebuffer[src]

impl<T: ObjectType> PartialEq<T> for GLFramebuffer[src]

impl<T: ObjectType> PartialOrd<T> for GLFramebuffer[src]

impl Send for GLFramebuffer[src]

impl StaticType for GLFramebuffer[src]

impl Sync for GLFramebuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for GLFramebuffer

impl Unpin for GLFramebuffer

impl UnwindSafe for GLFramebuffer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExt for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExtManual for O where
    O: IsA<Object>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.