Struct ringl::SimpleFbo [−][src]
pub struct SimpleFbo { /* fields omitted */ }
Methods
impl SimpleFbo
[src]
impl SimpleFbo
pub fn blit(&self, fbo2: &mut Fbo, src_rect: &Rect, dst_rect: &Rect)
[src]
[−]
pub fn blit(&self, fbo2: &mut Fbo, 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, src_rect: &Rect, dst_rect: &Rect)
[src]
[−]
pub fn blit_depth(&self, fbo2: &mut Fbo, 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]
[−]
pub fn color_tex(&self, idx: usize) -> &Texture
Returns the color attachent idx's texture if it exists
pub fn depth(&self) -> &DepthAttachment
[src]
[−]
pub fn depth(&self) -> &DepthAttachment
Returns the depth attachent
pub fn viewport(&self) -> Rect
[src]
[−]
pub fn viewport(&self) -> Rect
Returns the default viewport for this Fbo
pub fn width(&self) -> u32
[src]
[−]
pub fn width(&self) -> u32
Returns the width for this Fbo
pub fn height(&self) -> u32
[src]
[−]
pub fn height(&self) -> u32
Returns the height for this Fbo
pub fn aspect_ratio(&self) -> f32
[src]
[−]
pub fn aspect_ratio(&self) -> f32
Returns the aspect ratio for this Fbo
pub fn size(&self) -> (u32, u32)
[src]
[−]
pub fn size(&self) -> (u32, u32)
Returns the width and height for this Fbo
pub fn non_multisampled_buffer(&self) -> &Fbo
[src]
pub fn non_multisampled_buffer(&self) -> &Fbo
Trait Implementations
impl<'a> Render2d for &'a SimpleFbo
[src]
impl<'a> Render2d for &'a SimpleFbo
type Material = BasicMaterial<&'a Texture>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
[src]
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
material: &M
)
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&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]
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
fn render<R: RenderSurface>(&self, renderer: &Renderer<R>, pos: &Pnt2)
[src]
fn render<R: RenderSurface>(&self, renderer: &Renderer<R>, pos: &Pnt2)
fn render_size<R: RenderSurface>(
&self,
renderer: &Renderer<R>,
pos: &Pnt2,
size: &Vec2
)
[src]
fn render_size<R: RenderSurface>(
&self,
renderer: &Renderer<R>,
pos: &Pnt2,
size: &Vec2
)
impl OffscreenBuffer for SimpleFbo
[src]
impl OffscreenBuffer for SimpleFbo
fn render_buffer(&self) -> &Fbo
[src]
fn render_buffer(&self) -> &Fbo