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

pub trait Object: Geometry {
    fn render(&self, camera: &Camera, lights: &Lights) -> ThreeDResult<()>;
fn is_transparent(&self) -> bool; }
Expand description

Represents a 3D object which can be rendered.

Required methods

Render the object. Must be called in a render target render function, for example in the callback function of Screen::write. You can use Lights::default() if you know the object does not require lights to be rendered.

Returns whether or not this object should be considered transparent.

Implementations on Foreign Types

Implementors