Struct rin::gl::fbo::Builder[][src]

pub struct Builder<'a>(_);

Implementations

impl<'a> Builder<'a>[src]

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

New Fbo with no attachments

pub fn create(
    &self,
    w: u32,
    h: u32,
    color_format: ColorFormat
) -> Result<Fbo<ColorAttachment, DepthAttachment>, Error>
[src]

New Fbo with 1 color attachment of the specified dimensions and internal GL_RGBA8

This will allocate a 24bit depth attachment

pub fn from_color<C>(&self, color: C) -> Result<Fbo<C, DepthAttachment>, Error> where
    C: BorrowColorAttach
[src]

New Fbo with the passed color attachment

This will allocate a 32bit depth attachment

pub fn from_color_no_depth<C>(
    &self,
    color: C
) -> Result<Fbo<C, DepthAttachment>, Error> where
    C: BorrowColorAttach
[src]

New Fbo with the passed color attachment

This won’t auto allocate a depth attachment

pub fn from_colors<C>(
    &self,
    color: Vec<C, Global>
) -> Result<Fbo<C, DepthAttachment>, Error> where
    C: BorrowColorAttach
[src]

New Fbo with the passed color attachments

This will allocate a 24bit depth attachment

pub fn from_colors_no_depth<C>(
    &self,
    color: Vec<C, Global>
) -> Result<Fbo<C, DepthAttachment>, Error> where
    C: BorrowColorAttach
[src]

New Fbo with the passed color attachments

This will allocate a 24bit depth attachment

pub fn from_depth<D>(&self, depth: D) -> Result<Fbo<ColorAttachment, D>, Error> where
    D: BorrowDepthAttach
[src]

New Fbo with the passed depth attachment and no color

pub fn from_color_depth<C, D, OC, OD>(
    &self,
    color: OC,
    depth: OD
) -> Result<Fbo<C, D>, Error> where
    C: BorrowColorAttach,
    D: BorrowDepthAttach,
    OC: Into<Option<C>>,
    OD: Into<Option<D>>, 
[src]

New Fbo with the passed color and depth attachment

pub fn from_colors_depth<C, D>(
    &self,
    color: Vec<C, Global>,
    depth: D
) -> Result<Fbo<C, D>, Error> where
    C: BorrowColorAttach,
    D: BorrowDepthAttach
[src]

New Fbo with the passed color attachments and depth attachment

pub fn from_cubemap_face<C>(
    &self,
    cubemap: C,
    face: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
    C: Borrow<CubeMap>, 
[src]

pub fn from_cubemap_face_level<C>(
    &self,
    cubemap: C,
    face: u32,
    level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
    C: Borrow<CubeMap>, 
[src]

pub fn from_cubemap_face_no_depth<C>(
    &self,
    cubemap: C,
    face: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
    C: Borrow<CubeMap>, 
[src]

pub fn from_cubemap_face_level_no_depth<C>(
    &self,
    cubemap: C,
    face: u32,
    level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
    C: Borrow<CubeMap>, 
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Builder<'a>

impl<'a> !Send for Builder<'a>

impl<'a> !Sync for Builder<'a>

impl<'a> Unpin for Builder<'a>

impl<'a> !UnwindSafe for Builder<'a>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]