Trait three_d::renderer::object::Shadable2D[][src]

pub trait Shadable2D {
    fn render_with_material(
        &self,
        material: &dyn Material,
        viewport: Viewport
    ) -> ThreeDResult<()>;
fn render_forward(
        &self,
        material: &dyn Material,
        viewport: Viewport
    ) -> ThreeDResult<()>; }
Expand description

Represents a 2D object that is possible to render with Materials.

Required methods

Render the object with the given material. Must be called in a render target render function, for example in the callback function of Screen::write.

👎 Deprecated:

use render_with_material instead

Render the object with the given material. Must be called in a render target render function, for example in the callback function of Screen::write.

Implementations on Foreign Types

👎 Deprecated:

use render_with_material instead

👎 Deprecated:

use render_with_material instead

Implementors