Struct rin::gl::fbo::Builder [−][src]
pub struct Builder<'a>(_);
Implementations
impl<'a> Builder<'a>
[src]
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]
&self,
w: u32,
h: u32,
color_format: ColorFormat
) -> Result<Fbo<ColorAttachment, DepthAttachment>, Error>
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]
C: BorrowColorAttach,
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]
&self,
color: C
) -> Result<Fbo<C, DepthAttachment>, Error> where
C: BorrowColorAttach,
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]
&self,
color: Vec<C, Global>
) -> Result<Fbo<C, DepthAttachment>, Error> where
C: BorrowColorAttach,
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]
&self,
color: Vec<C, Global>
) -> Result<Fbo<C, DepthAttachment>, Error> where
C: BorrowColorAttach,
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]
D: BorrowDepthAttach,
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]
&self,
color: OC,
depth: OD
) -> Result<Fbo<C, D>, Error> where
C: BorrowColorAttach,
D: BorrowDepthAttach,
OC: Into<Option<C>>,
OD: Into<Option<D>>,
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]
&self,
color: Vec<C, Global>,
depth: D
) -> Result<Fbo<C, D>, Error> where
C: BorrowColorAttach,
D: BorrowDepthAttach,
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]
&self,
cubemap: C,
face: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
C: Borrow<CubeMap>,
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]
&self,
cubemap: C,
face: u32,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
C: Borrow<CubeMap>,
pub fn from_cubemap_face_no_depth<C>(
&self,
cubemap: C,
face: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
C: Borrow<CubeMap>,
[src]
&self,
cubemap: C,
face: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
C: Borrow<CubeMap>,
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]
&self,
cubemap: C,
face: u32,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>, DepthAttachment>, Error> where
C: Borrow<CubeMap>,
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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]