Struct gdnative::BakedLightmap
[−]
[src]
pub struct BakedLightmap { /* fields omitted */ }
core class BakedLightmap : VisualInstance
(manually managed)
Base class
BakedLightmap 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 BakedLightmap::free
.
Methods
impl BakedLightmap
[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 BakedLightmap::free
.
pub unsafe fn free(self)
[src]
Manually deallocate the object.
pub fn set_light_data(&mut self, data: Option<BakedLightmapData>)
[src]
pub fn get_light_data(&self) -> Option<BakedLightmapData>
[src]
pub fn set_bake_cell_size(&mut self, bake_cell_size: f64)
[src]
pub fn get_bake_cell_size(&self) -> f64
[src]
pub fn set_capture_cell_size(&mut self, capture_cell_size: f64)
[src]
pub fn get_capture_cell_size(&self) -> f64
[src]
pub fn set_bake_quality(&mut self, bake_quality: i64)
[src]
pub fn set_bake_mode(&mut self, bake_mode: i64)
[src]
pub fn set_extents(&mut self, extents: Vector3)
[src]
pub fn get_extents(&self) -> Vector3
[src]
pub fn set_propagation(&mut self, propagation: f64)
[src]
pub fn get_propagation(&self) -> f64
[src]
pub fn set_energy(&mut self, energy: f64)
[src]
pub fn get_energy(&self) -> f64
[src]
pub fn set_hdr(&mut self, hdr: bool)
[src]
pub fn is_hdr(&self) -> bool
[src]
pub fn set_image_path(&mut self, image_path: GodotString)
[src]
pub fn get_image_path(&self) -> GodotString
[src]
pub fn debug_bake(&mut self)
[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 BakedLightmap
[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 BakedLightmap
[src]
type Target = VisualInstance
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.