Struct glin::fbo::Builder[][src]

pub struct Builder<'a>(_);

Implementations

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

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

New Fbo with no attachments

pub fn create(&self, w: u32, h: u32, color_format: ColorFormat) -> Result<Fbo>[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: BorrowColorAttach>(&self, color: C) -> Result<Fbo<C>>[src]

New Fbo with the passed color attachment

This will allocate a 32bit depth attachment

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

New Fbo with the passed color attachment

This won’t auto allocate a depth attachment

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

New Fbo with the passed color attachments

This will allocate a 24bit depth attachment

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

New Fbo with the passed color attachments

This will allocate a 24bit depth attachment

pub fn from_depth<D: BorrowDepthAttach>(
    &self,
    depth: D
) -> Result<Fbo<ColorAttachment, D>>
[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>> 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: BorrowColorAttach, D: BorrowDepthAttach>(
    &self,
    color: Vec<C>,
    depth: D
) -> Result<Fbo<C, D>>
[src]

New Fbo with the passed color attachments and depth attachment

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

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

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

pub fn from_cubemap_face_level_no_depth<C: Borrow<CubeMap>>(
    &self,
    cubemap: C,
    face: GLenum,
    level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
[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> From<T> for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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.