[][src]Struct gdnative::GIProbe

pub struct GIProbe { /* fields omitted */ }

core class GIProbe inherits VisualInstance (unsafe).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

Non reference counted objects such as the ones of this type are usually owned by the engine.

GIProbe is an unsafe pointer, and all of its methods are unsafe.

In the cases where Rust code owns an object of this type, for example if the object was just created on the Rust side and not passed to the engine yet, ownership should be either given to the engine or the object must be manually destroyed using GIProbe::free.

Class hierarchy

GIProbe inherits methods from:

Methods

impl GIProbe[src]

Constants

pub const SUBDIV_512: i64[src]

pub const SUBDIV_MAX: i64[src]

pub const SUBDIV_128: i64[src]

pub const SUBDIV_256: i64[src]

pub const SUBDIV_64: i64[src]

impl GIProbe[src]

pub fn new() -> GIProbe[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 GIProbe::free.

pub unsafe fn free(self)[src]

Manually deallocate the object.

pub unsafe fn bake(
    &mut self,
    from_node: Option<Node>,
    create_visual_debug: bool
)
[src]

pub unsafe fn debug_bake(&mut self)[src]

pub unsafe fn get_bias(&self) -> f64[src]

pub unsafe fn get_dynamic_range(&self) -> i64[src]

pub unsafe fn get_energy(&self) -> f64[src]

pub unsafe fn get_extents(&self) -> Vector3D<f32, UnknownUnit>[src]

pub unsafe fn get_normal_bias(&self) -> f64[src]

pub unsafe fn get_probe_data(&self) -> Option<GIProbeData>[src]

pub unsafe fn get_propagation(&self) -> f64[src]

pub unsafe fn get_subdiv(&self) -> GIProbeSubdiv[src]

pub unsafe fn is_compressed(&self) -> bool[src]

pub unsafe fn is_interior(&self) -> bool[src]

pub unsafe fn set_bias(&mut self, max: f64)[src]

pub unsafe fn set_compress(&mut self, enable: bool)[src]

pub unsafe fn set_dynamic_range(&mut self, max: i64)[src]

pub unsafe fn set_energy(&mut self, max: f64)[src]

pub unsafe fn set_extents(&mut self, extents: Vector3D<f32, UnknownUnit>)[src]

pub unsafe fn set_interior(&mut self, enable: bool)[src]

pub unsafe fn set_normal_bias(&mut self, max: f64)[src]

pub unsafe fn set_probe_data(&mut self, data: Option<GIProbeData>)[src]

pub unsafe fn set_propagation(&mut self, max: f64)[src]

pub unsafe fn set_subdiv(&mut self, subdiv: i64)[src]

pub unsafe fn to_visual_instance(&self) -> VisualInstance[src]

Up-cast.

pub unsafe fn to_spatial(&self) -> Spatial[src]

Up-cast.

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = VisualInstance>

pub unsafe fn _get_visual_instance_rid(&self) -> Rid[src]

pub unsafe fn get_aabb(&self) -> Aabb[src]

pub unsafe fn get_base(&self) -> Rid[src]

pub unsafe fn get_instance(&self) -> Rid[src]

pub unsafe fn get_layer_mask(&self) -> i64[src]

pub unsafe fn get_layer_mask_bit(&self, layer: i64) -> bool[src]

pub unsafe fn get_transformed_aabb(&self) -> Aabb[src]

pub unsafe fn set_base(&mut self, base: Rid)[src]

pub unsafe fn set_layer_mask(&mut self, mask: i64)[src]

pub unsafe fn set_layer_mask_bit(&mut self, layer: i64, enabled: bool)[src]

pub unsafe fn to_spatial(&self) -> Spatial[src]

Up-cast.

pub unsafe fn to_node(&self) -> Node[src]

Up-cast.

pub unsafe fn to_object(&self) -> Object[src]

Up-cast.

pub unsafe fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for GIProbe[src]

impl Copy for GIProbe[src]

impl Debug for GIProbe[src]

impl Deref for GIProbe[src]

type Target = VisualInstance

The resulting type after dereferencing.

impl DerefMut for GIProbe[src]

impl Free for GIProbe[src]

impl FromVariant for GIProbe[src]

impl GodotObject for GIProbe[src]

impl Instanciable for GIProbe[src]

impl QueueFree for GIProbe[src]

impl ToVariant for GIProbe[src]

Auto Trait Implementations

impl RefUnwindSafe for GIProbe

impl !Send for GIProbe

impl !Sync for GIProbe

impl Unpin for GIProbe

impl UnwindSafe for GIProbe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.