Struct three_d::core::Screen [−][src]
pub struct Screen {}
Expand description
The screen render target which is essential to get something on the screen (see the write function).
Implementations
impl Screen
[src]
impl Screen
[src]pub fn write<F: FnOnce() -> Result<(), Error>>(
context: &Context,
clear_state: ClearState,
render: F
) -> Result<(), Error>
[src]
pub fn write<F: FnOnce() -> Result<(), Error>>(
context: &Context,
clear_state: ClearState,
render: F
) -> Result<(), Error>
[src]Call this function and make a render call (for example on some object)
in the render
closure to render something to the screen.
Before writing, the screen is cleared based on the given clear state.