Struct rin::gl::SimpleFbo [−][src]
pub struct SimpleFbo { /* fields omitted */ }
Wrapper over fbo that creates attachments and fbo in one call
Also creates a secondary attachement when using multisampled buffers and automatically blits ithe multisampled to the non multisampled so ti can be drawn with a normal fragment shader
Implementations
impl SimpleFbo
[src]
impl SimpleFbo
[src]pub fn blit(
&self,
fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
src_rect: &Rect,
dst_rect: &Rect
)
[src]
&self,
fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
src_rect: &Rect,
dst_rect: &Rect
)
Copy the contents of the color attachments of this Fbo
to dst
From the src_rect rectangle to dst_rect
pub fn blit_depth(
&self,
fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
src_rect: &Rect,
dst_rect: &Rect
)
[src]
&self,
fbo2: &mut Fbo<ColorAttachment, DepthAttachment>,
src_rect: &Rect,
dst_rect: &Rect
)
Copy the contents of the depth attachments of this Fbo
to dst
From the src_rect rectangle to dst_rect
pub fn color_tex(&self, idx: usize) -> &Texture
[src]
Returns the color attachent idx’s texture if it exists
pub fn depth(&self) -> &DepthAttachment
[src]
Returns the depth attachent
pub fn viewport(&self) -> Rect
[src]
Returns the default viewport for this Fbo
pub fn width(&self) -> u32
[src]
Returns the width for this Fbo
pub fn height(&self) -> u32
[src]
Returns the height for this Fbo
pub fn aspect_ratio(&self) -> f32
[src]
Returns the aspect ratio for this Fbo
pub fn size(&self) -> (u32, u32)
[src]
Returns the width and height for this Fbo
pub fn non_multisampled_buffer(&self) -> &Fbo<ColorAttachment, DepthAttachment>
[src]
Returns the fbo that can be drawn
Trait Implementations
impl<'a> OffscreenBuffer for &'a SimpleFbo
[src]
impl<'a> OffscreenBuffer for &'a SimpleFbo
[src]type ColorAttach = ColorAttachment
type DepthAttach = DepthAttachment
pub fn render_buffer(&self) -> &Fbo<ColorAttachment, DepthAttachment>
[src]
pub fn color_attachment(&self, idx: usize) -> Option<&ColorAttachment>
[src]
pub fn depth_attachment(&self) -> Option<&DepthAttachment>
[src]
impl<'a> Render2d for &'a SimpleFbo
[src]
impl<'a> Render2d for &'a SimpleFbo
[src]type Material = BasicMaterial<&'a Texture>
pub fn default_material(&'b self) -> BasicMaterial<&'a Texture>
[src]
pub fn render_with_material<R, M>(
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
material: &M
) where
M: Material,
R: RenderSurface,
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
material: &M
) where
M: Material,
R: RenderSurface,
pub fn render_size_with_material<R, M>(
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
material: &M
) where
M: Material,
R: RenderSurface,
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
material: &M
) where
M: Material,
R: RenderSurface,
pub fn render<R>(&self, renderer: &Renderer<'_, R>, pos: &Point<f32, U2>) where
R: RenderSurface,
[src]
R: RenderSurface,
pub fn render_size<R>(
&self,
renderer: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Point<f32, U2>,
size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
R: RenderSurface,
Auto Trait Implementations
impl !RefUnwindSafe for SimpleFbo
impl !Send for SimpleFbo
impl !Sync for SimpleFbo
impl Unpin for SimpleFbo
impl !UnwindSafe for SimpleFbo
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]