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]
impl Lightpub fn as_visual_instance(&self) -> VisualInstance[src]
pub fn as_visual_instance(&self) -> VisualInstanceUp-cast.
pub fn set_editor_only(&mut self, editor_only: bool)[src]
pub fn set_editor_only(&mut self, editor_only: bool)pub fn is_editor_only(&self) -> bool[src]
pub fn is_editor_only(&self) -> boolpub fn set_param(&mut self, param: i64, value: f64)[src]
pub fn set_param(&mut self, param: i64, value: f64)pub fn get_param(&self, param: i64) -> f64[src]
pub fn get_param(&self, param: i64) -> f64pub fn set_shadow(&mut self, enabled: bool)[src]
pub fn set_shadow(&mut self, enabled: bool)pub fn has_shadow(&self) -> bool[src]
pub fn has_shadow(&self) -> boolpub fn set_negative(&mut self, enabled: bool)[src]
pub fn set_negative(&mut self, enabled: bool)pub fn is_negative(&self) -> bool[src]
pub fn is_negative(&self) -> boolpub fn set_cull_mask(&mut self, cull_mask: i64)[src]
pub fn set_cull_mask(&mut self, cull_mask: i64)pub fn get_cull_mask(&self) -> i64[src]
pub fn get_cull_mask(&self) -> i64pub fn set_color(&mut self, color: Color)[src]
pub fn set_color(&mut self, color: Color)pub fn get_color(&self) -> Color[src]
pub fn get_color(&self) -> Colorpub fn set_shadow_reverse_cull_face(&mut self, enable: bool)[src]
pub fn set_shadow_reverse_cull_face(&mut self, enable: bool)pub fn get_shadow_reverse_cull_face(&self) -> bool[src]
pub fn get_shadow_reverse_cull_face(&self) -> boolpub fn set_shadow_color(&mut self, shadow_color: Color)[src]
pub fn set_shadow_color(&mut self, shadow_color: Color)pub fn get_shadow_color(&self) -> Color[src]
pub fn get_shadow_color(&self) -> Colorpub fn set_bake_mode(&mut self, bake_mode: i64)[src]
pub fn set_bake_mode(&mut self, bake_mode: i64)pub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Methods from Deref<Target = VisualInstance>
pub fn as_spatial(&self) -> Spatial[src]
pub fn as_spatial(&self) -> SpatialUp-cast.
pub fn _get_visual_instance_rid(&self) -> Rid[src]
pub fn _get_visual_instance_rid(&self) -> Ridpub fn set_base(&mut self, base: Rid)[src]
pub fn set_base(&mut self, base: Rid)pub fn set_layer_mask(&mut self, mask: i64)[src]
pub fn set_layer_mask(&mut self, mask: i64)pub fn get_layer_mask(&self) -> i64[src]
pub fn get_layer_mask(&self) -> i64pub fn get_transformed_aabb(&self) -> Aabb[src]
pub fn get_transformed_aabb(&self) -> Aabbpub fn get_aabb(&self) -> Aabb[src]
pub fn get_aabb(&self) -> Aabbpub fn cast<T: GodotObject>(&self) -> Option<T>[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>Trait Implementations
impl GodotObject for Light[src]
impl GodotObject for Lightfn class_name() -> &'static str[src]
fn class_name() -> &'static strunsafe fn from_sys(obj: *mut godot_object) -> Self[src]
unsafe fn from_sys(obj: *mut godot_object) -> Selfunsafe fn to_sys(&self) -> *mut godot_object[src]
unsafe fn to_sys(&self) -> *mut godot_objectimpl Deref for Light[src]
impl Deref for Lighttype Target = VisualInstance
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl DerefMut for Light[src]
impl DerefMut for Light