[][src]Struct processing::framebuffer::SimpleFrameBuffer

pub struct SimpleFrameBuffer<'a> { /* fields omitted */ }

A framebuffer which has only one color attachment.

Methods

impl<'a> SimpleFrameBuffer<'a>[src]

pub fn new<F, C>(
    facade: &F,
    color: C
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    C: ToColorAttachment<'a>,
    F: Facade + ?Sized
[src]

Creates a SimpleFrameBuffer with a single color attachment and no depth nor stencil buffer.

pub fn with_depth_buffer<F, C, D>(
    facade: &F,
    color: C,
    depth: D
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    C: ToColorAttachment<'a>,
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized
[src]

Creates a SimpleFrameBuffer with a single color attachment and a depth buffer, but no stencil buffer.

pub fn depth_only<F, D>(
    facade: &F,
    depth: D
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized
[src]

Creates a SimpleFrameBuffer with a single color attachment and no depth nor stencil buffer.

pub fn with_depth_and_stencil_buffer<F, C, D, S>(
    facade: &F,
    color: C,
    depth: D,
    stencil: S
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    C: ToColorAttachment<'a>,
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized,
    S: ToStencilAttachment<'a>, 
[src]

Creates a SimpleFrameBuffer with a single color attachment, a depth buffer, and a stencil buffer.

pub fn depth_and_stencil_only<F, D, S>(
    facade: &F,
    depth: D,
    stencil: S
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    D: ToDepthAttachment<'a>,
    F: Facade + ?Sized,
    S: ToStencilAttachment<'a>, 
[src]

Creates a SimpleFrameBuffer with a single color attachment and no depth nor stencil buffer.

pub fn with_stencil_buffer<F, C, S>(
    facade: &F,
    color: C,
    stencil: S
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    C: ToColorAttachment<'a>,
    F: Facade + ?Sized,
    S: ToStencilAttachment<'a>, 
[src]

Creates a SimpleFrameBuffer with a single color attachment and a stencil buffer, but no depth buffer.

pub fn stencil_only<F, S>(
    facade: &F,
    stencil: S
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    F: Facade + ?Sized,
    S: ToStencilAttachment<'a>, 
[src]

Creates a SimpleFrameBuffer with a single color attachment and a stencil buffer, but no depth buffer.

pub fn with_depth_stencil_buffer<F, C, D>(
    facade: &F,
    color: C,
    depthstencil: D
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    C: ToColorAttachment<'a>,
    D: ToDepthStencilAttachment<'a>,
    F: Facade + ?Sized
[src]

Creates a SimpleFrameBuffer with a single color attachment and a depth-stencil buffer.

pub fn depth_stencil_only<F, D>(
    facade: &F,
    depthstencil: D
) -> Result<SimpleFrameBuffer<'a>, ValidationError> where
    D: ToDepthStencilAttachment<'a>,
    F: Facade + ?Sized
[src]

Creates a SimpleFrameBuffer with a single color attachment and a depth-stencil buffer.

Trait Implementations

impl<'a> Surface for SimpleFrameBuffer<'a>[src]

fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target.

fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)[src]

Clears the color attachment of the target. The color is in sRGB format.

fn clear_depth(&mut self, value: f32)[src]

Clears the depth attachment of the target.

fn clear_stencil(&mut self, value: i32)[src]

Clears the stencil attachment of the target.

fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)[src]

Clears the color and depth attachments of the target.

fn clear_color_srgb_and_depth(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32
)
[src]

Clears the color and depth attachments of the target. The color is in sRGB format.

fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)[src]

Clears the color and stencil attachments of the target.

fn clear_color_srgb_and_stencil(
    &mut self,
    color: (f32, f32, f32, f32),
    stencil: i32
)
[src]

Clears the color and stencil attachments of the target. The color is in sRGB format.

fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)[src]

Clears the depth and stencil attachments of the target.

fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)[src]

Clears the color, depth and stencil attachments of the target.

fn clear_all_srgb(
    &mut self,
    color: (f32, f32, f32, f32),
    depth: f32,
    stencil: i32
)
[src]

Clears the color, depth and stencil attachments of the target. The color is in sRGB format.

fn has_depth_buffer(&self) -> bool[src]

Returns true if the surface has a depth buffer available.

fn has_stencil_buffer(&self) -> bool[src]

Returns true if the surface has a stencil buffer available.

fn blit_whole_color_to<S>(
    &self,
    target: &S,
    target_rect: &BlitTarget,
    filter: MagnifySamplerFilter
) where
    S: Surface
[src]

Copies the entire surface to a target surface. See blit_color.

fn fill<S>(&self, target: &S, filter: MagnifySamplerFilter) where
    S: Surface
[src]

Copies the entire surface to the entire target. See blit_color.

Auto Trait Implementations

impl<'a> !Send for SimpleFrameBuffer<'a>

impl<'a> !Sync for SimpleFrameBuffer<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T[src]