[][src]Struct three_d::core::rendertarget::Screen

pub struct Screen {}

Methods

impl Screen[src]

pub fn write(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_color: Option<&Vec4>,
    clear_depth: Option<f32>,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn read_color(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize
) -> Result<Vec<u8>, Error>
[src]

pub fn read_depth(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize
) -> Result<Vec<f32>, Error>
[src]

pub fn save_color(
    path: &str,
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize
) -> Result<(), Error>
[src]

Auto Trait Implementations

impl RefUnwindSafe for Screen

impl Send for Screen

impl Sync for Screen

impl Unpin for Screen

impl UnwindSafe for Screen

Blanket Implementations

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

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

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

impl<T> Erased for T

impl<T> From<T> for T[src]

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

impl<T> SetParameter for T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.