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, src_rect: &Rect, dst_rect: &Rect)
[src]
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, src_rect: &Rect, dst_rect: &Rect)
[src]
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
[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
fn render_buffer(&self) -> &Fbo
[src]
fn color_attachment(&self, idx: usize) -> Option<&ColorAttachment>
[src]
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>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
fn render<R: RenderSurface>(&self, renderer: &Renderer<'_, R>, pos: &Pnt2)
[src]
fn render_size<R: RenderSurface>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2
)
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2
)
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]