Struct gdnative::Light
[−]
[src]
pub struct Light { /* fields omitted */ }
core class Light : VisualInstance
(manually managed)
Base class
Light inherits VisualInstance and all of its methods.
Methods
impl Light
[src]
pub fn as_visual_instance(&self) -> VisualInstance
[src]
Up-cast.
pub fn set_editor_only(&mut self, editor_only: bool)
[src]
pub fn is_editor_only(&self) -> bool
[src]
pub fn set_param(&mut self, param: i64, value: f64)
[src]
pub fn get_param(&self, param: i64) -> f64
[src]
pub fn set_shadow(&mut self, enabled: bool)
[src]
pub fn has_shadow(&self) -> bool
[src]
pub fn set_negative(&mut self, enabled: bool)
[src]
pub fn is_negative(&self) -> bool
[src]
pub fn set_cull_mask(&mut self, cull_mask: i64)
[src]
pub fn get_cull_mask(&self) -> i64
[src]
pub fn set_color(&mut self, color: Color)
[src]
pub fn get_color(&self) -> Color
[src]
pub fn set_shadow_reverse_cull_face(&mut self, enable: bool)
[src]
pub fn get_shadow_reverse_cull_face(&self) -> bool
[src]
pub fn set_shadow_color(&mut self, shadow_color: Color)
[src]
pub fn get_shadow_color(&self) -> Color
[src]
pub fn set_bake_mode(&mut self, bake_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 Light
[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 Light
[src]
type Target = VisualInstance
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.