Struct glin::fbo::Builder [−][src]
pub struct Builder<'a>(_);
Implementations
impl<'a> Builder<'a>
[src]
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]
&self,
color: C
) -> Result<Fbo<C>>
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]
&self,
color: Vec<C>
) -> Result<Fbo<C>>
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]
&self,
depth: D
) -> Result<Fbo<ColorAttachment, D>>
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]
&self,
color: OC,
depth: OD
) -> Result<Fbo<C, D>> 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: BorrowColorAttach, D: BorrowDepthAttach>(
&self,
color: Vec<C>,
depth: D
) -> Result<Fbo<C, D>>
[src]
&self,
color: Vec<C>,
depth: D
) -> Result<Fbo<C, D>>
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]
&self,
cubemap: C,
face: GLenum
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
pub fn from_cubemap_face_level<C: Borrow<CubeMap>>(
&self,
cubemap: C,
face: GLenum,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
[src]
&self,
cubemap: C,
face: GLenum,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
pub fn from_cubemap_face_no_depth<C: Borrow<CubeMap>>(
&self,
cubemap: C,
face: GLenum
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
[src]
&self,
cubemap: C,
face: GLenum
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
pub fn from_cubemap_face_level_no_depth<C: Borrow<CubeMap>>(
&self,
cubemap: C,
face: GLenum,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>>>
[src]
&self,
cubemap: C,
face: GLenum,
level: u32
) -> Result<Fbo<CubemapFaceLevelRef<C>>>