[]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

Methods

impl GLFramebuffer[src]

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

context

a GLContext

Returns

a new GLFramebuffer

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

context

a GLContext

width

width for the depth buffer

height

for the depth buffer

Returns

a new GLFramebuffer with a depth buffer of width and height

Trait Implementations

impl Clone for GLFramebuffer

impl Debug for GLFramebuffer

impl Eq for GLFramebuffer

impl Hash for GLFramebuffer

impl IsA<Object> for GLFramebuffer

impl Ord for GLFramebuffer

impl<T: ObjectType> PartialEq<T> for GLFramebuffer

impl<T: ObjectType> PartialOrd<T> for GLFramebuffer

impl Send for GLFramebuffer[src]

impl StaticType for GLFramebuffer

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.