Struct gdnative::Environment [−][src]
pub struct Environment { /* fields omitted */ }
core class Environment : Resource
(reference counted)
Base class
Environment inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl Environment
[src]
impl Environment
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn set_background(&mut self, mode: i64)
[src]
pub fn set_background(&mut self, mode: i64)
pub fn set_sky(&mut self, sky: Option<Sky>)
[src]
pub fn set_sky(&mut self, sky: Option<Sky>)
pub fn set_sky_custom_fov(&mut self, scale: f64)
[src]
pub fn set_sky_custom_fov(&mut self, scale: f64)
pub fn set_bg_color(&mut self, color: Color)
[src]
pub fn set_bg_color(&mut self, color: Color)
pub fn set_bg_energy(&mut self, energy: f64)
[src]
pub fn set_bg_energy(&mut self, energy: f64)
pub fn set_canvas_max_layer(&mut self, layer: i64)
[src]
pub fn set_canvas_max_layer(&mut self, layer: i64)
pub fn set_ambient_light_color(&mut self, color: Color)
[src]
pub fn set_ambient_light_color(&mut self, color: Color)
pub fn set_ambient_light_energy(&mut self, energy: f64)
[src]
pub fn set_ambient_light_energy(&mut self, energy: f64)
pub fn set_ambient_light_sky_contribution(&mut self, energy: f64)
[src]
pub fn set_ambient_light_sky_contribution(&mut self, energy: f64)
pub fn get_sky(&self) -> Option<Sky>
[src]
pub fn get_sky(&self) -> Option<Sky>
pub fn get_sky_custom_fov(&self) -> f64
[src]
pub fn get_sky_custom_fov(&self) -> f64
pub fn get_bg_color(&self) -> Color
[src]
pub fn get_bg_color(&self) -> Color
pub fn get_bg_energy(&self) -> f64
[src]
pub fn get_bg_energy(&self) -> f64
pub fn get_canvas_max_layer(&self) -> i64
[src]
pub fn get_canvas_max_layer(&self) -> i64
pub fn get_ambient_light_color(&self) -> Color
[src]
pub fn get_ambient_light_color(&self) -> Color
pub fn get_ambient_light_energy(&self) -> f64
[src]
pub fn get_ambient_light_energy(&self) -> f64
pub fn get_ambient_light_sky_contribution(&self) -> f64
[src]
pub fn get_ambient_light_sky_contribution(&self) -> f64
pub fn set_fog_enabled(&mut self, enabled: bool)
[src]
pub fn set_fog_enabled(&mut self, enabled: bool)
pub fn is_fog_enabled(&self) -> bool
[src]
pub fn is_fog_enabled(&self) -> bool
pub fn set_fog_color(&mut self, color: Color)
[src]
pub fn set_fog_color(&mut self, color: Color)
pub fn get_fog_color(&self) -> Color
[src]
pub fn get_fog_color(&self) -> Color
pub fn set_fog_sun_color(&mut self, color: Color)
[src]
pub fn set_fog_sun_color(&mut self, color: Color)
pub fn get_fog_sun_color(&self) -> Color
[src]
pub fn get_fog_sun_color(&self) -> Color
pub fn set_fog_sun_amount(&mut self, amount: f64)
[src]
pub fn set_fog_sun_amount(&mut self, amount: f64)
pub fn get_fog_sun_amount(&self) -> f64
[src]
pub fn get_fog_sun_amount(&self) -> f64
pub fn set_fog_depth_enabled(&mut self, enabled: bool)
[src]
pub fn set_fog_depth_enabled(&mut self, enabled: bool)
pub fn is_fog_depth_enabled(&self) -> bool
[src]
pub fn is_fog_depth_enabled(&self) -> bool
pub fn set_fog_depth_begin(&mut self, distance: f64)
[src]
pub fn set_fog_depth_begin(&mut self, distance: f64)
pub fn get_fog_depth_begin(&self) -> f64
[src]
pub fn get_fog_depth_begin(&self) -> f64
pub fn set_fog_depth_curve(&mut self, curve: f64)
[src]
pub fn set_fog_depth_curve(&mut self, curve: f64)
pub fn get_fog_depth_curve(&self) -> f64
[src]
pub fn get_fog_depth_curve(&self) -> f64
pub fn set_fog_transmit_enabled(&mut self, enabled: bool)
[src]
pub fn set_fog_transmit_enabled(&mut self, enabled: bool)
pub fn is_fog_transmit_enabled(&self) -> bool
[src]
pub fn is_fog_transmit_enabled(&self) -> bool
pub fn set_fog_transmit_curve(&mut self, curve: f64)
[src]
pub fn set_fog_transmit_curve(&mut self, curve: f64)
pub fn get_fog_transmit_curve(&self) -> f64
[src]
pub fn get_fog_transmit_curve(&self) -> f64
pub fn set_fog_height_enabled(&mut self, enabled: bool)
[src]
pub fn set_fog_height_enabled(&mut self, enabled: bool)
pub fn is_fog_height_enabled(&self) -> bool
[src]
pub fn is_fog_height_enabled(&self) -> bool
pub fn set_fog_height_min(&mut self, height: f64)
[src]
pub fn set_fog_height_min(&mut self, height: f64)
pub fn get_fog_height_min(&self) -> f64
[src]
pub fn get_fog_height_min(&self) -> f64
pub fn set_fog_height_max(&mut self, height: f64)
[src]
pub fn set_fog_height_max(&mut self, height: f64)
pub fn get_fog_height_max(&self) -> f64
[src]
pub fn get_fog_height_max(&self) -> f64
pub fn set_fog_height_curve(&mut self, curve: f64)
[src]
pub fn set_fog_height_curve(&mut self, curve: f64)
pub fn get_fog_height_curve(&self) -> f64
[src]
pub fn get_fog_height_curve(&self) -> f64
pub fn set_tonemapper(&mut self, mode: i64)
[src]
pub fn set_tonemapper(&mut self, mode: i64)
pub fn set_tonemap_exposure(&mut self, exposure: f64)
[src]
pub fn set_tonemap_exposure(&mut self, exposure: f64)
pub fn get_tonemap_exposure(&self) -> f64
[src]
pub fn get_tonemap_exposure(&self) -> f64
pub fn set_tonemap_white(&mut self, white: f64)
[src]
pub fn set_tonemap_white(&mut self, white: f64)
pub fn get_tonemap_white(&self) -> f64
[src]
pub fn get_tonemap_white(&self) -> f64
pub fn set_tonemap_auto_exposure(&mut self, auto_exposure: bool)
[src]
pub fn set_tonemap_auto_exposure(&mut self, auto_exposure: bool)
pub fn get_tonemap_auto_exposure(&self) -> bool
[src]
pub fn get_tonemap_auto_exposure(&self) -> bool
pub fn set_tonemap_auto_exposure_max(&mut self, exposure_max: f64)
[src]
pub fn set_tonemap_auto_exposure_max(&mut self, exposure_max: f64)
pub fn get_tonemap_auto_exposure_max(&self) -> f64
[src]
pub fn get_tonemap_auto_exposure_max(&self) -> f64
pub fn set_tonemap_auto_exposure_min(&mut self, exposure_min: f64)
[src]
pub fn set_tonemap_auto_exposure_min(&mut self, exposure_min: f64)
pub fn get_tonemap_auto_exposure_min(&self) -> f64
[src]
pub fn get_tonemap_auto_exposure_min(&self) -> f64
pub fn set_tonemap_auto_exposure_speed(&mut self, exposure_speed: f64)
[src]
pub fn set_tonemap_auto_exposure_speed(&mut self, exposure_speed: f64)
pub fn get_tonemap_auto_exposure_speed(&self) -> f64
[src]
pub fn get_tonemap_auto_exposure_speed(&self) -> f64
pub fn set_tonemap_auto_exposure_grey(&mut self, exposure_grey: f64)
[src]
pub fn set_tonemap_auto_exposure_grey(&mut self, exposure_grey: f64)
pub fn get_tonemap_auto_exposure_grey(&self) -> f64
[src]
pub fn get_tonemap_auto_exposure_grey(&self) -> f64
pub fn set_ssr_enabled(&mut self, enabled: bool)
[src]
pub fn set_ssr_enabled(&mut self, enabled: bool)
pub fn is_ssr_enabled(&self) -> bool
[src]
pub fn is_ssr_enabled(&self) -> bool
pub fn set_ssr_max_steps(&mut self, max_steps: i64)
[src]
pub fn set_ssr_max_steps(&mut self, max_steps: i64)
pub fn get_ssr_max_steps(&self) -> i64
[src]
pub fn get_ssr_max_steps(&self) -> i64
pub fn set_ssr_fade_in(&mut self, fade_in: f64)
[src]
pub fn set_ssr_fade_in(&mut self, fade_in: f64)
pub fn get_ssr_fade_in(&self) -> f64
[src]
pub fn get_ssr_fade_in(&self) -> f64
pub fn set_ssr_fade_out(&mut self, fade_out: f64)
[src]
pub fn set_ssr_fade_out(&mut self, fade_out: f64)
pub fn get_ssr_fade_out(&self) -> f64
[src]
pub fn get_ssr_fade_out(&self) -> f64
pub fn set_ssr_depth_tolerance(&mut self, depth_tolerance: f64)
[src]
pub fn set_ssr_depth_tolerance(&mut self, depth_tolerance: f64)
pub fn get_ssr_depth_tolerance(&self) -> f64
[src]
pub fn get_ssr_depth_tolerance(&self) -> f64
pub fn set_ssr_rough(&mut self, rough: bool)
[src]
pub fn set_ssr_rough(&mut self, rough: bool)
pub fn is_ssr_rough(&self) -> bool
[src]
pub fn is_ssr_rough(&self) -> bool
pub fn set_ssao_enabled(&mut self, enabled: bool)
[src]
pub fn set_ssao_enabled(&mut self, enabled: bool)
pub fn is_ssao_enabled(&self) -> bool
[src]
pub fn is_ssao_enabled(&self) -> bool
pub fn set_ssao_radius(&mut self, radius: f64)
[src]
pub fn set_ssao_radius(&mut self, radius: f64)
pub fn get_ssao_radius(&self) -> f64
[src]
pub fn get_ssao_radius(&self) -> f64
pub fn set_ssao_intensity(&mut self, intensity: f64)
[src]
pub fn set_ssao_intensity(&mut self, intensity: f64)
pub fn get_ssao_intensity(&self) -> f64
[src]
pub fn get_ssao_intensity(&self) -> f64
pub fn set_ssao_radius2(&mut self, radius: f64)
[src]
pub fn set_ssao_radius2(&mut self, radius: f64)
pub fn get_ssao_radius2(&self) -> f64
[src]
pub fn get_ssao_radius2(&self) -> f64
pub fn set_ssao_intensity2(&mut self, intensity: f64)
[src]
pub fn set_ssao_intensity2(&mut self, intensity: f64)
pub fn get_ssao_intensity2(&self) -> f64
[src]
pub fn get_ssao_intensity2(&self) -> f64
pub fn set_ssao_bias(&mut self, bias: f64)
[src]
pub fn set_ssao_bias(&mut self, bias: f64)
pub fn get_ssao_bias(&self) -> f64
[src]
pub fn get_ssao_bias(&self) -> f64
pub fn set_ssao_direct_light_affect(&mut self, amount: f64)
[src]
pub fn set_ssao_direct_light_affect(&mut self, amount: f64)
pub fn get_ssao_direct_light_affect(&self) -> f64
[src]
pub fn get_ssao_direct_light_affect(&self) -> f64
pub fn set_ssao_color(&mut self, color: Color)
[src]
pub fn set_ssao_color(&mut self, color: Color)
pub fn get_ssao_color(&self) -> Color
[src]
pub fn get_ssao_color(&self) -> Color
pub fn set_ssao_blur(&mut self, mode: i64)
[src]
pub fn set_ssao_blur(&mut self, mode: i64)
pub fn set_ssao_quality(&mut self, quality: i64)
[src]
pub fn set_ssao_quality(&mut self, quality: i64)
pub fn set_ssao_edge_sharpness(&mut self, edge_sharpness: f64)
[src]
pub fn set_ssao_edge_sharpness(&mut self, edge_sharpness: f64)
pub fn get_ssao_edge_sharpness(&self) -> f64
[src]
pub fn get_ssao_edge_sharpness(&self) -> f64
pub fn set_dof_blur_far_enabled(&mut self, enabled: bool)
[src]
pub fn set_dof_blur_far_enabled(&mut self, enabled: bool)
pub fn is_dof_blur_far_enabled(&self) -> bool
[src]
pub fn is_dof_blur_far_enabled(&self) -> bool
pub fn set_dof_blur_far_distance(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_far_distance(&mut self, intensity: f64)
pub fn get_dof_blur_far_distance(&self) -> f64
[src]
pub fn get_dof_blur_far_distance(&self) -> f64
pub fn set_dof_blur_far_transition(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_far_transition(&mut self, intensity: f64)
pub fn get_dof_blur_far_transition(&self) -> f64
[src]
pub fn get_dof_blur_far_transition(&self) -> f64
pub fn set_dof_blur_far_amount(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_far_amount(&mut self, intensity: f64)
pub fn get_dof_blur_far_amount(&self) -> f64
[src]
pub fn get_dof_blur_far_amount(&self) -> f64
pub fn set_dof_blur_far_quality(&mut self, intensity: i64)
[src]
pub fn set_dof_blur_far_quality(&mut self, intensity: i64)
pub fn set_dof_blur_near_enabled(&mut self, enabled: bool)
[src]
pub fn set_dof_blur_near_enabled(&mut self, enabled: bool)
pub fn is_dof_blur_near_enabled(&self) -> bool
[src]
pub fn is_dof_blur_near_enabled(&self) -> bool
pub fn set_dof_blur_near_distance(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_near_distance(&mut self, intensity: f64)
pub fn get_dof_blur_near_distance(&self) -> f64
[src]
pub fn get_dof_blur_near_distance(&self) -> f64
pub fn set_dof_blur_near_transition(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_near_transition(&mut self, intensity: f64)
pub fn get_dof_blur_near_transition(&self) -> f64
[src]
pub fn get_dof_blur_near_transition(&self) -> f64
pub fn set_dof_blur_near_amount(&mut self, intensity: f64)
[src]
pub fn set_dof_blur_near_amount(&mut self, intensity: f64)
pub fn get_dof_blur_near_amount(&self) -> f64
[src]
pub fn get_dof_blur_near_amount(&self) -> f64
pub fn set_dof_blur_near_quality(&mut self, level: i64)
[src]
pub fn set_dof_blur_near_quality(&mut self, level: i64)
pub fn set_glow_enabled(&mut self, enabled: bool)
[src]
pub fn set_glow_enabled(&mut self, enabled: bool)
pub fn is_glow_enabled(&self) -> bool
[src]
pub fn is_glow_enabled(&self) -> bool
pub fn set_glow_level(&mut self, idx: i64, enabled: bool)
[src]
pub fn set_glow_level(&mut self, idx: i64, enabled: bool)
pub fn is_glow_level_enabled(&self, idx: i64) -> bool
[src]
pub fn is_glow_level_enabled(&self, idx: i64) -> bool
pub fn set_glow_intensity(&mut self, intensity: f64)
[src]
pub fn set_glow_intensity(&mut self, intensity: f64)
pub fn get_glow_intensity(&self) -> f64
[src]
pub fn get_glow_intensity(&self) -> f64
pub fn set_glow_strength(&mut self, strength: f64)
[src]
pub fn set_glow_strength(&mut self, strength: f64)
pub fn get_glow_strength(&self) -> f64
[src]
pub fn get_glow_strength(&self) -> f64
pub fn set_glow_bloom(&mut self, amount: f64)
[src]
pub fn set_glow_bloom(&mut self, amount: f64)
pub fn get_glow_bloom(&self) -> f64
[src]
pub fn get_glow_bloom(&self) -> f64
pub fn set_glow_blend_mode(&mut self, mode: i64)
[src]
pub fn set_glow_blend_mode(&mut self, mode: i64)
pub fn set_glow_hdr_bleed_threshold(&mut self, threshold: f64)
[src]
pub fn set_glow_hdr_bleed_threshold(&mut self, threshold: f64)
pub fn get_glow_hdr_bleed_threshold(&self) -> f64
[src]
pub fn get_glow_hdr_bleed_threshold(&self) -> f64
pub fn set_glow_hdr_bleed_scale(&mut self, scale: f64)
[src]
pub fn set_glow_hdr_bleed_scale(&mut self, scale: f64)
pub fn get_glow_hdr_bleed_scale(&self) -> f64
[src]
pub fn get_glow_hdr_bleed_scale(&self) -> f64
pub fn set_glow_bicubic_upscale(&mut self, enabled: bool)
[src]
pub fn set_glow_bicubic_upscale(&mut self, enabled: bool)
pub fn is_glow_bicubic_upscale_enabled(&self) -> bool
[src]
pub fn is_glow_bicubic_upscale_enabled(&self) -> bool
pub fn set_adjustment_enable(&mut self, enabled: bool)
[src]
pub fn set_adjustment_enable(&mut self, enabled: bool)
pub fn is_adjustment_enabled(&self) -> bool
[src]
pub fn is_adjustment_enabled(&self) -> bool
pub fn set_adjustment_brightness(&mut self, brightness: f64)
[src]
pub fn set_adjustment_brightness(&mut self, brightness: f64)
pub fn get_adjustment_brightness(&self) -> f64
[src]
pub fn get_adjustment_brightness(&self) -> f64
pub fn set_adjustment_contrast(&mut self, contrast: f64)
[src]
pub fn set_adjustment_contrast(&mut self, contrast: f64)
pub fn get_adjustment_contrast(&self) -> f64
[src]
pub fn get_adjustment_contrast(&self) -> f64
pub fn set_adjustment_saturation(&mut self, saturation: f64)
[src]
pub fn set_adjustment_saturation(&mut self, saturation: f64)
pub fn get_adjustment_saturation(&self) -> f64
[src]
pub fn get_adjustment_saturation(&self) -> f64
pub fn set_adjustment_color_correction(
&mut self,
color_correction: Option<Texture>
)
[src]
pub fn set_adjustment_color_correction(
&mut self,
color_correction: Option<Texture>
)
pub fn get_adjustment_color_correction(&self) -> Option<Texture>
[src]
pub fn get_adjustment_color_correction(&self) -> Option<Texture>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
pub fn as_reference(&self) -> Reference
Up-cast.
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn _setup_local_to_scene(&mut self)
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn set_path(&mut self, path: GodotString)
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
pub fn get_path(&self) -> GodotString
[src]
pub fn get_path(&self) -> GodotString
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn set_name(&mut self, name: GodotString)
pub fn get_name(&self) -> GodotString
[src]
pub fn get_name(&self) -> GodotString
pub fn get_rid(&self) -> Rid
[src]
pub fn get_rid(&self) -> Rid
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn is_local_to_scene(&self) -> bool
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn get_local_scene(&self) -> Option<Node>
pub fn setup_local_to_scene(&mut self)
[src]
pub fn setup_local_to_scene(&mut self)
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for Environment
[src]
impl GodotObject for Environment
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for Environment
[src]
impl Deref for Environment
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for Environment
[src]
impl DerefMut for Environment
impl Drop for Environment
[src]
impl Drop for Environment
Auto Trait Implementations
impl !Send for Environment
impl !Send for Environment
impl !Sync for Environment
impl !Sync for Environment