Struct three_d::renderer::object::Circle [−][src]
pub struct Circle<M: Material> { /* fields omitted */ }
Implementations
pub fn new_with_material(
context: &Context,
center: Vec2,
radius: f32,
material: M
) -> ThreeDResult<Self>
Trait Implementations
Render the object. Must be called in a render target render function, for example in the callback function of Screen::write. Read more
Returns whether or not this object should be considered transparent. Read more
fn render_with_material(
&self,
material: &dyn Material,
viewport: Viewport
) -> ThreeDResult<()>
fn render_with_material(
&self,
material: &dyn Material,
viewport: Viewport
) -> ThreeDResult<()>
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. Read more
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. Read more
Auto Trait Implementations
impl<M> !RefUnwindSafe for Circle<M>
impl<M> !UnwindSafe for Circle<M>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more