pub struct Settings {
Show 13 fields pub width: I, pub height: I, pub antialias: I, pub background: F3, pub background_fn: bool, pub opacity: F, pub steps: I, pub step_size: F, pub max_distance: F, pub grid_size: F, pub grid_step_size: F, pub iso_value: F, pub renderer: Renderer,
}
Expand description

SDF

Fields§

§width: I§height: I§antialias: I§background: F3§background_fn: bool§opacity: F§steps: I§step_size: F§max_distance: F§grid_size: F§grid_step_size: F§iso_value: F§renderer: Renderer

Implementations§

source§

impl Settings

source

pub fn new() -> Self

source

pub fn get_width(&mut self) -> I

source

pub fn set_width(&mut self, new_val: I)

source

pub fn get_height(&mut self) -> I

source

pub fn set_height(&mut self, new_val: I)

source

pub fn get_antialias(&mut self) -> I

source

pub fn set_antialias(&mut self, new_val: I)

source

pub fn get_background(&mut self) -> F3

source

pub fn set_background(&mut self, new_val: F3)

source

pub fn get_opacity(&mut self) -> F

source

pub fn set_opacity(&mut self, new_val: F)

source

pub fn get_steps(&mut self) -> I

source

pub fn set_steps(&mut self, new_val: I)

source

pub fn get_step_size(&mut self) -> F

source

pub fn set_step_size(&mut self, new_val: F)

source

pub fn get_max_distance(&mut self) -> F

source

pub fn set_max_distance(&mut self, new_val: F)

source

pub fn get_grid_size(&mut self) -> F

source

pub fn set_grid_size(&mut self, new_val: F)

source

pub fn get_grid_step_size(&mut self) -> F

source

pub fn set_grid_step_size(&mut self, new_val: F)

source

pub fn get_iso_value(&mut self) -> F

source

pub fn set_iso_value(&mut self, new_val: F)

source

pub fn get_renderer(&mut self) -> Renderer

source

pub fn set_renderer(&mut self, new_val: Renderer)

source

pub fn register(engine: &mut Engine)

Register to the engine

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Settings> for Settings

source§

fn eq(&self, other: &Settings) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Settings

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> Variant for Twhere T: Any + Clone + SendSync,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert this Variant trait object to &dyn Any.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert this Variant trait object to &mut dyn Any.
source§

fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>

Convert this Variant trait object to Box<dyn Any>.
source§

fn type_name(&self) -> &'static str

Get the name of this type.
source§

fn clone_object(&self) -> Box<dyn Variant + 'static, Global>

Clone this Variant trait object.