[]Struct gstreamer_gl::GLSLStage

pub struct GLSLStage(_, _);

GLSLStage holds and represents a single OpenGL shader stage.

Implements

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

Methods

impl GLSLStage[src]

pub fn new<P: IsA<GLContext>>(context: &P, type_: u32) -> GLSLStage[src]

context

a GLContext

type_

the GL enum shader stage type

Returns

a new GLSLStage of the specified type_

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

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

pub fn new_with_string<P: IsA<GLContext>>(
    context: &P,
    type_: u32,
    version: GLSLVersion,
    profile: GLSLProfile,
    str: &str
) -> GLSLStage
[src]

context

a GLContext

type_

the GL enum shader stage type

version

the GLSLVersion

profile

the GLSLProfile

str

a shader string

Returns

a new GLSLStage of the specified type_

pub fn new_with_strings<P: IsA<GLContext>>(
    context: &P,
    type_: u32,
    version: GLSLVersion,
    profile: GLSLProfile,
    str: &[&str]
) -> GLSLStage
[src]

context

a GLContext

type_

the GL enum shader stage type

version

the GLSLVersion

profile

the GLSLProfile

n_strings

the number of strings in str

str

an array of strings concatted together to produce a shader

Returns

a new GLSLStage of the specified type_

pub fn compile(&self) -> Result<(), Error>[src]

Returns

whether the compilation suceeded

pub fn get_handle(&self) -> u32[src]

Returns

The GL handle for this shader stage

pub fn get_profile(&self) -> GLSLProfile[src]

Returns

The GLSL profile for the current shader stage

pub fn get_shader_type(&self) -> u32[src]

Returns

The GL shader type for this shader stage

pub fn get_version(&self) -> GLSLVersion[src]

Returns

The GLSL version for the current shader stage

pub fn set_strings(
    &self,
    version: GLSLVersion,
    profile: GLSLProfile,
    str: &[&str]
) -> Result<(), BoolError>
[src]

Replaces the current shader string with str.

version

a GLSLVersion

profile

a GLSLProfile

n_strings

number of strings in str

str

a GLSL shader string

Trait Implementations

impl Clone for GLSLStage

impl Debug for GLSLStage

impl Eq for GLSLStage

impl Hash for GLSLStage

impl IsA<Object> for GLSLStage

impl Ord for GLSLStage

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

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

impl Send for GLSLStage[src]

impl StaticType for GLSLStage

impl Sync for GLSLStage[src]

Auto Trait Implementations

impl RefUnwindSafe for GLSLStage

impl Unpin for GLSLStage

impl UnwindSafe for GLSLStage

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.