Struct gdnative::ReflectionProbe
[−]
[src]
pub struct ReflectionProbe { /* fields omitted */ }
core class ReflectionProbe : VisualInstance
(manually managed)
Base class
ReflectionProbe inherits VisualInstance and all of its methods.
Memory management
Non reference counted objects such as the ones of this type are usually owned by the engine.
In the cases where Rust code owns an object of this type, ownership should be either passed
to the engine or the object must be manually destroyed using ReflectionProbe::free
.
Methods
impl ReflectionProbe
[src]
pub fn as_visual_instance(&self) -> VisualInstance
[src]
Up-cast.
pub fn new() -> Self
[src]
Constructor.
Because this type is not reference counted, the lifetime of the returned object
is not automatically managed.
Immediately after creation, the object is owned by the caller, and can be
passed to the engine (in which case the engine will be responsible for
destroying the object) or destroyed manually using ReflectionProbe::free
.
pub unsafe fn free(self)
[src]
Manually deallocate the object.
pub fn set_intensity(&mut self, intensity: f64)
[src]
pub fn get_intensity(&self) -> f64
[src]
pub fn set_interior_ambient(&mut self, ambient: Color)
[src]
pub fn get_interior_ambient(&self) -> Color
[src]
pub fn set_interior_ambient_energy(&mut self, ambient_energy: f64)
[src]
pub fn get_interior_ambient_energy(&self) -> f64
[src]
pub fn set_interior_ambient_probe_contribution(
&mut self,
ambient_probe_contribution: f64
)
[src]
&mut self,
ambient_probe_contribution: f64
)
pub fn get_interior_ambient_probe_contribution(&self) -> f64
[src]
pub fn set_max_distance(&mut self, max_distance: f64)
[src]
pub fn get_max_distance(&self) -> f64
[src]
pub fn set_extents(&mut self, extents: Vector3)
[src]
pub fn get_extents(&self) -> Vector3
[src]
pub fn set_origin_offset(&mut self, origin_offset: Vector3)
[src]
pub fn get_origin_offset(&self) -> Vector3
[src]
pub fn set_as_interior(&mut self, enable: bool)
[src]
pub fn is_set_as_interior(&self) -> bool
[src]
pub fn set_enable_box_projection(&mut self, enable: bool)
[src]
pub fn is_box_projection_enabled(&self) -> bool
[src]
pub fn set_enable_shadows(&mut self, enable: bool)
[src]
pub fn are_shadows_enabled(&self) -> bool
[src]
pub fn set_cull_mask(&mut self, layers: i64)
[src]
pub fn get_cull_mask(&self) -> i64
[src]
pub fn set_update_mode(&mut self, mode: i64)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = VisualInstance>
pub fn as_spatial(&self) -> Spatial
[src]
Up-cast.
pub fn _get_visual_instance_rid(&self) -> Rid
[src]
pub fn set_base(&mut self, base: Rid)
[src]
pub fn set_layer_mask(&mut self, mask: i64)
[src]
pub fn get_layer_mask(&self) -> i64
[src]
pub fn get_transformed_aabb(&self) -> Aabb
[src]
pub fn get_aabb(&self) -> Aabb
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for ReflectionProbe
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for ReflectionProbe
[src]
type Target = VisualInstance
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.