pub struct GraphicsState {
pub current_inside_medium: String,
pub current_outside_medium: String,
pub float_textures: Arc<RefCell<HashMap<String, Arc<dyn Texture<Float>>>>>,
pub float_textures_shared: bool,
pub spectrum_textures: Arc<RefCell<HashMap<String, Arc<dyn Texture<Spectrum>>>>>,
pub spectrum_textures_shared: bool,
pub named_materials: Arc<RefCell<HashMap<String, Arc<RefCell<MaterialInstance>>>>>,
pub named_materials_shared: bool,
pub current_material: Option<Arc<RefCell<MaterialInstance>>>,
pub area_light_params: ParamSet,
pub area_light_name: String,
pub reverse_orientation: bool,
}
Fields§
§current_inside_medium: String
§current_outside_medium: String
§float_textures: Arc<RefCell<HashMap<String, Arc<dyn Texture<Float>>>>>
§spectrum_textures: Arc<RefCell<HashMap<String, Arc<dyn Texture<Spectrum>>>>>
§named_materials: Arc<RefCell<HashMap<String, Arc<RefCell<MaterialInstance>>>>>
§current_material: Option<Arc<RefCell<MaterialInstance>>>
§area_light_params: ParamSet
§area_light_name: String
§reverse_orientation: bool
Implementations§
Source§impl GraphicsState
impl GraphicsState
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphicsState
impl !RefUnwindSafe for GraphicsState
impl !Send for GraphicsState
impl !Sync for GraphicsState
impl Unpin for GraphicsState
impl !UnwindSafe for GraphicsState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more