Struct RenderingServer

Source
#[repr(C)]
pub struct RenderingServer { /* private fields */ }
Expand description

Godot class RenderingServer.

Inherits Object.

Related symbols:

See also Godot docs for RenderingServer.

§Singleton

This class is a singleton. You can get the one instance using RenderingServer::singleton().

§Final class

This class is final, meaning you cannot inherit from it, and it comes without I* interface trait. It is still possible that other Godot classes inherit from it, but that is limited to the engine itself.

Implementations§

Source§

impl RenderingServer

Source

pub const NO_INDEX_ARRAY: i32 = -1i32

Source

pub const ARRAY_WEIGHTS_SIZE: i32 = 4i32

Source

pub const CANVAS_ITEM_Z_MIN: i32 = -4_096i32

Source

pub const CANVAS_ITEM_Z_MAX: i32 = 4_096i32

Source

pub const MAX_GLOW_LEVELS: i32 = 7i32

Source

pub const MAX_CURSORS: i32 = 8i32

Source

pub const MAX_2D_DIRECTIONAL_LIGHTS: i32 = 8i32

Source

pub const MAX_MESH_SURFACES: i32 = 256i32

Source

pub const MATERIAL_RENDER_PRIORITY_MIN: i32 = -128i32

Source

pub const MATERIAL_RENDER_PRIORITY_MAX: i32 = 127i32

Source

pub const ARRAY_CUSTOM_COUNT: i32 = 4i32

Source

pub const PARTICLES_EMIT_FLAG_POSITION: i32 = 1i32

Source

pub const PARTICLES_EMIT_FLAG_ROTATION_SCALE: i32 = 2i32

Source

pub const PARTICLES_EMIT_FLAG_VELOCITY: i32 = 4i32

Source

pub const PARTICLES_EMIT_FLAG_COLOR: i32 = 8i32

Source

pub const PARTICLES_EMIT_FLAG_CUSTOM: i32 = 16i32

Source

pub fn singleton() -> Gd<Self>

Source

pub fn texture_proxy_create(&mut self, base: Rid) -> Rid

Source

pub fn texture_proxy_update(&mut self, texture: Rid, proxy_to: Rid)

Source

pub fn texture_2d_placeholder_create(&mut self) -> Rid

Source

pub fn texture_2d_layered_placeholder_create( &mut self, layered_type: TextureLayeredType, ) -> Rid

Source

pub fn texture_3d_placeholder_create(&mut self) -> Rid

Source

pub fn texture_replace(&mut self, texture: Rid, by_texture: Rid)

Source

pub fn texture_set_size_override( &mut self, texture: Rid, width: i32, height: i32, )

Source

pub fn texture_set_path(&mut self, texture: Rid, path: impl AsArg<GString>)

Source

pub fn texture_get_path(&self, texture: Rid) -> GString

Source

pub fn texture_set_force_redraw_if_visible( &mut self, texture: Rid, enable: bool, )

Source

pub fn texture_rd_create(&mut self, rd_texture: Rid) -> Rid

To set the default parameters, use Self::texture_rd_create_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn texture_rd_create_ex<'a>( &'a mut self, rd_texture: Rid, ) -> ExTextureRdCreate<'a>

Source

pub fn texture_get_rd_texture(&self, texture: Rid) -> Rid

To set the default parameters, use Self::texture_get_rd_texture_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn texture_get_rd_texture_ex<'a>( &'a self, texture: Rid, ) -> ExTextureGetRdTexture<'a>

Source

pub fn texture_get_native_handle(&self, texture: Rid) -> u64

To set the default parameters, use Self::texture_get_native_handle_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn texture_get_native_handle_ex<'a>( &'a self, texture: Rid, ) -> ExTextureGetNativeHandle<'a>

Source

pub fn shader_create(&mut self) -> Rid

Source

pub fn shader_set_code(&mut self, shader: Rid, code: impl AsArg<GString>)

Source

pub fn shader_set_path_hint(&mut self, shader: Rid, path: impl AsArg<GString>)

Source

pub fn shader_get_code(&self, shader: Rid) -> GString

Source

pub fn get_shader_parameter_list(&self, shader: Rid) -> Array<Dictionary>

Source

pub fn shader_get_parameter_default( &self, shader: Rid, name: impl AsArg<StringName>, ) -> Variant

Source

pub fn shader_set_default_texture_parameter( &mut self, shader: Rid, name: impl AsArg<StringName>, texture: Rid, )

To set the default parameters, use Self::shader_set_default_texture_parameter_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shader_set_default_texture_parameter_ex<'a>( &'a mut self, shader: Rid, name: impl AsArg<StringName> + 'a, texture: Rid, ) -> ExShaderSetDefaultTextureParameter<'a>

Source

pub fn shader_get_default_texture_parameter( &self, shader: Rid, name: impl AsArg<StringName>, ) -> Rid

To set the default parameters, use Self::shader_get_default_texture_parameter_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn shader_get_default_texture_parameter_ex<'a>( &'a self, shader: Rid, name: impl AsArg<StringName> + 'a, ) -> ExShaderGetDefaultTextureParameter<'a>

Source

pub fn material_create(&mut self) -> Rid

Source

pub fn material_set_shader(&mut self, shader_material: Rid, shader: Rid)

Source

pub fn material_set_param( &mut self, material: Rid, parameter: impl AsArg<StringName>, value: &Variant, )

Source

pub fn material_get_param( &self, material: Rid, parameter: impl AsArg<StringName>, ) -> Variant

Source

pub fn material_set_render_priority(&mut self, material: Rid, priority: i32)

Source

pub fn material_set_next_pass(&mut self, material: Rid, next_material: Rid)

Source

pub fn mesh_create_from_surfaces(&mut self, surfaces: &Array<Dictionary>) -> Rid

To set the default parameters, use Self::mesh_create_from_surfaces_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn mesh_create_from_surfaces_ex<'a>( &'a mut self, surfaces: &'a Array<Dictionary>, ) -> ExMeshCreateFromSurfaces<'a>

Source

pub fn mesh_create(&mut self) -> Rid

Source

pub fn mesh_surface_get_format_offset( &self, format: ArrayFormat, vertex_count: i32, array_index: i32, ) -> u32

Source

pub fn mesh_surface_get_format_vertex_stride( &self, format: ArrayFormat, vertex_count: i32, ) -> u32

Source

pub fn mesh_surface_get_format_normal_tangent_stride( &self, format: ArrayFormat, vertex_count: i32, ) -> u32

Source

pub fn mesh_surface_get_format_attribute_stride( &self, format: ArrayFormat, vertex_count: i32, ) -> u32

Source

pub fn mesh_surface_get_format_skin_stride( &self, format: ArrayFormat, vertex_count: i32, ) -> u32

Source

pub fn mesh_add_surface(&mut self, mesh: Rid, surface: &Dictionary)

Source

pub fn mesh_add_surface_from_arrays( &mut self, mesh: Rid, primitive: PrimitiveType, arrays: &VariantArray, )

To set the default parameters, use Self::mesh_add_surface_from_arrays_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn mesh_add_surface_from_arrays_ex<'a>( &'a mut self, mesh: Rid, primitive: PrimitiveType, arrays: &'a VariantArray, ) -> ExMeshAddSurfaceFromArrays<'a>

Source

pub fn mesh_get_blend_shape_count(&self, mesh: Rid) -> i32

Source

pub fn mesh_set_blend_shape_mode(&mut self, mesh: Rid, mode: BlendShapeMode)

Source

pub fn mesh_get_blend_shape_mode(&self, mesh: Rid) -> BlendShapeMode

Source

pub fn mesh_surface_set_material( &mut self, mesh: Rid, surface: i32, material: Rid, )

Source

pub fn mesh_surface_get_material(&self, mesh: Rid, surface: i32) -> Rid

Source

pub fn mesh_get_surface(&mut self, mesh: Rid, surface: i32) -> Dictionary

Source

pub fn mesh_surface_get_arrays(&self, mesh: Rid, surface: i32) -> VariantArray

Source

pub fn mesh_surface_get_blend_shape_arrays( &self, mesh: Rid, surface: i32, ) -> Array<VariantArray>

Source

pub fn mesh_get_surface_count(&self, mesh: Rid) -> i32

Source

pub fn mesh_set_custom_aabb(&mut self, mesh: Rid, aabb: Aabb)

Source

pub fn mesh_get_custom_aabb(&self, mesh: Rid) -> Aabb

Source

pub fn mesh_surface_remove(&mut self, mesh: Rid, surface: i32)

Source

pub fn mesh_clear(&mut self, mesh: Rid)

Source

pub fn mesh_surface_update_vertex_region( &mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray, )

Source

pub fn mesh_surface_update_attribute_region( &mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray, )

Source

pub fn mesh_surface_update_skin_region( &mut self, mesh: Rid, surface: i32, offset: i32, data: &PackedByteArray, )

Source

pub fn mesh_set_shadow_mesh(&mut self, mesh: Rid, shadow_mesh: Rid)

Source

pub fn multimesh_create(&mut self) -> Rid

Source

pub fn multimesh_allocate_data( &mut self, multimesh: Rid, instances: i32, transform_format: MultimeshTransformFormat, )

To set the default parameters, use Self::multimesh_allocate_data_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn multimesh_allocate_data_ex<'a>( &'a mut self, multimesh: Rid, instances: i32, transform_format: MultimeshTransformFormat, ) -> ExMultimeshAllocateData<'a>

Source

pub fn multimesh_get_instance_count(&self, multimesh: Rid) -> i32

Source

pub fn multimesh_set_mesh(&mut self, multimesh: Rid, mesh: Rid)

Source

pub fn multimesh_instance_set_transform( &mut self, multimesh: Rid, index: i32, transform: Transform3D, )

Source

pub fn multimesh_instance_set_transform_2d( &mut self, multimesh: Rid, index: i32, transform: Transform2D, )

Source

pub fn multimesh_instance_set_color( &mut self, multimesh: Rid, index: i32, color: Color, )

Source

pub fn multimesh_instance_set_custom_data( &mut self, multimesh: Rid, index: i32, custom_data: Color, )

Source

pub fn multimesh_get_mesh(&self, multimesh: Rid) -> Rid

Source

pub fn multimesh_get_aabb(&self, multimesh: Rid) -> Aabb

Source

pub fn multimesh_set_custom_aabb(&mut self, multimesh: Rid, aabb: Aabb)

Source

pub fn multimesh_get_custom_aabb(&self, multimesh: Rid) -> Aabb

Source

pub fn multimesh_instance_get_transform( &self, multimesh: Rid, index: i32, ) -> Transform3D

Source

pub fn multimesh_instance_get_transform_2d( &self, multimesh: Rid, index: i32, ) -> Transform2D

Source

pub fn multimesh_instance_get_color(&self, multimesh: Rid, index: i32) -> Color

Source

pub fn multimesh_instance_get_custom_data( &self, multimesh: Rid, index: i32, ) -> Color

Source

pub fn multimesh_set_visible_instances(&mut self, multimesh: Rid, visible: i32)

Source

pub fn multimesh_get_visible_instances(&self, multimesh: Rid) -> i32

Source

pub fn multimesh_set_buffer( &mut self, multimesh: Rid, buffer: &PackedFloat32Array, )

Source

pub fn multimesh_get_command_buffer_rd_rid(&self, multimesh: Rid) -> Rid

Source

pub fn multimesh_get_buffer_rd_rid(&self, multimesh: Rid) -> Rid

Source

pub fn multimesh_get_buffer(&self, multimesh: Rid) -> PackedFloat32Array

Source

pub fn multimesh_set_buffer_interpolated( &mut self, multimesh: Rid, buffer: &PackedFloat32Array, buffer_previous: &PackedFloat32Array, )

Source

pub fn multimesh_set_physics_interpolated( &mut self, multimesh: Rid, interpolated: bool, )

Source

pub fn multimesh_set_physics_interpolation_quality( &mut self, multimesh: Rid, quality: MultimeshPhysicsInterpolationQuality, )

Source

pub fn multimesh_instance_reset_physics_interpolation( &mut self, multimesh: Rid, index: i32, )

Source

pub fn skeleton_create(&mut self) -> Rid

Source

pub fn skeleton_allocate_data(&mut self, skeleton: Rid, bones: i32)

To set the default parameters, use Self::skeleton_allocate_data_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn skeleton_allocate_data_ex<'a>( &'a mut self, skeleton: Rid, bones: i32, ) -> ExSkeletonAllocateData<'a>

Source

pub fn skeleton_get_bone_count(&self, skeleton: Rid) -> i32

Source

pub fn skeleton_bone_set_transform( &mut self, skeleton: Rid, bone: i32, transform: Transform3D, )

Source

pub fn skeleton_bone_get_transform( &self, skeleton: Rid, bone: i32, ) -> Transform3D

Source

pub fn skeleton_bone_set_transform_2d( &mut self, skeleton: Rid, bone: i32, transform: Transform2D, )

Source

pub fn skeleton_bone_get_transform_2d( &self, skeleton: Rid, bone: i32, ) -> Transform2D

Source

pub fn skeleton_set_base_transform_2d( &mut self, skeleton: Rid, base_transform: Transform2D, )

Source

pub fn directional_light_create(&mut self) -> Rid

Source

pub fn omni_light_create(&mut self) -> Rid

Source

pub fn spot_light_create(&mut self) -> Rid

Source

pub fn light_set_color(&mut self, light: Rid, color: Color)

Source

pub fn light_set_param(&mut self, light: Rid, param: LightParam, value: f32)

Source

pub fn light_set_shadow(&mut self, light: Rid, enabled: bool)

Source

pub fn light_set_projector(&mut self, light: Rid, texture: Rid)

Source

pub fn light_set_negative(&mut self, light: Rid, enable: bool)

Source

pub fn light_set_cull_mask(&mut self, light: Rid, mask: u32)

Source

pub fn light_set_distance_fade( &mut self, decal: Rid, enabled: bool, begin: f32, shadow: f32, length: f32, )

Source

pub fn light_set_reverse_cull_face_mode(&mut self, light: Rid, enabled: bool)

Source

pub fn light_set_shadow_caster_mask(&mut self, light: Rid, mask: u32)

Source

pub fn light_set_bake_mode(&mut self, light: Rid, bake_mode: LightBakeMode)

Source

pub fn light_set_max_sdfgi_cascade(&mut self, light: Rid, cascade: u32)

Source

pub fn light_omni_set_shadow_mode( &mut self, light: Rid, mode: LightOmniShadowMode, )

Source

pub fn light_directional_set_shadow_mode( &mut self, light: Rid, mode: LightDirectionalShadowMode, )

Source

pub fn light_directional_set_blend_splits(&mut self, light: Rid, enable: bool)

Source

pub fn light_directional_set_sky_mode( &mut self, light: Rid, mode: LightDirectionalSkyMode, )

Source

pub fn light_projectors_set_filter(&mut self, filter: LightProjectorFilter)

Source

pub fn lightmaps_set_bicubic_filter(&mut self, enable: bool)

Source

pub fn positional_soft_shadow_filter_set_quality( &mut self, quality: ShadowQuality, )

Source

pub fn directional_soft_shadow_filter_set_quality( &mut self, quality: ShadowQuality, )

Source

pub fn directional_shadow_atlas_set_size(&mut self, size: i32, is_16bits: bool)

Source

pub fn reflection_probe_create(&mut self) -> Rid

Source

pub fn reflection_probe_set_update_mode( &mut self, probe: Rid, mode: ReflectionProbeUpdateMode, )

Source

pub fn reflection_probe_set_intensity(&mut self, probe: Rid, intensity: f32)

Source

pub fn reflection_probe_set_blend_distance( &mut self, probe: Rid, blend_distance: f32, )

Source

pub fn reflection_probe_set_ambient_mode( &mut self, probe: Rid, mode: ReflectionProbeAmbientMode, )

Source

pub fn reflection_probe_set_ambient_color(&mut self, probe: Rid, color: Color)

Source

pub fn reflection_probe_set_ambient_energy(&mut self, probe: Rid, energy: f32)

Source

pub fn reflection_probe_set_max_distance(&mut self, probe: Rid, distance: f32)

Source

pub fn reflection_probe_set_size(&mut self, probe: Rid, size: Vector3)

Source

pub fn reflection_probe_set_origin_offset( &mut self, probe: Rid, offset: Vector3, )

Source

pub fn reflection_probe_set_as_interior(&mut self, probe: Rid, enable: bool)

Source

pub fn reflection_probe_set_enable_box_projection( &mut self, probe: Rid, enable: bool, )

Source

pub fn reflection_probe_set_enable_shadows(&mut self, probe: Rid, enable: bool)

Source

pub fn reflection_probe_set_cull_mask(&mut self, probe: Rid, layers: u32)

Source

pub fn reflection_probe_set_reflection_mask(&mut self, probe: Rid, layers: u32)

Source

pub fn reflection_probe_set_resolution(&mut self, probe: Rid, resolution: i32)

Source

pub fn reflection_probe_set_mesh_lod_threshold( &mut self, probe: Rid, pixels: f32, )

Source

pub fn decal_create(&mut self) -> Rid

Source

pub fn decal_set_size(&mut self, decal: Rid, size: Vector3)

Source

pub fn decal_set_texture( &mut self, decal: Rid, type_: DecalTexture, texture: Rid, )

Source

pub fn decal_set_emission_energy(&mut self, decal: Rid, energy: f32)

Source

pub fn decal_set_albedo_mix(&mut self, decal: Rid, albedo_mix: f32)

Source

pub fn decal_set_modulate(&mut self, decal: Rid, color: Color)

Source

pub fn decal_set_cull_mask(&mut self, decal: Rid, mask: u32)

Source

pub fn decal_set_distance_fade( &mut self, decal: Rid, enabled: bool, begin: f32, length: f32, )

Source

pub fn decal_set_fade(&mut self, decal: Rid, above: f32, below: f32)

Source

pub fn decal_set_normal_fade(&mut self, decal: Rid, fade: f32)

Source

pub fn decals_set_filter(&mut self, filter: DecalFilter)

Source

pub fn gi_set_use_half_resolution(&mut self, half_resolution: bool)

Source

pub fn voxel_gi_create(&mut self) -> Rid

Source

pub fn voxel_gi_allocate_data( &mut self, voxel_gi: Rid, to_cell_xform: Transform3D, aabb: Aabb, octree_size: Vector3i, octree_cells: &PackedByteArray, data_cells: &PackedByteArray, distance_field: &PackedByteArray, level_counts: &PackedInt32Array, )

Source

pub fn voxel_gi_get_octree_size(&self, voxel_gi: Rid) -> Vector3i

Source

pub fn voxel_gi_get_octree_cells(&self, voxel_gi: Rid) -> PackedByteArray

Source

pub fn voxel_gi_get_data_cells(&self, voxel_gi: Rid) -> PackedByteArray

Source

pub fn voxel_gi_get_distance_field(&self, voxel_gi: Rid) -> PackedByteArray

Source

pub fn voxel_gi_get_level_counts(&self, voxel_gi: Rid) -> PackedInt32Array

Source

pub fn voxel_gi_get_to_cell_xform(&self, voxel_gi: Rid) -> Transform3D

Source

pub fn voxel_gi_set_dynamic_range(&mut self, voxel_gi: Rid, range: f32)

Source

pub fn voxel_gi_set_propagation(&mut self, voxel_gi: Rid, amount: f32)

Source

pub fn voxel_gi_set_energy(&mut self, voxel_gi: Rid, energy: f32)

Source

pub fn voxel_gi_set_baked_exposure_normalization( &mut self, voxel_gi: Rid, baked_exposure: f32, )

Source

pub fn voxel_gi_set_bias(&mut self, voxel_gi: Rid, bias: f32)

Source

pub fn voxel_gi_set_normal_bias(&mut self, voxel_gi: Rid, bias: f32)

Source

pub fn voxel_gi_set_interior(&mut self, voxel_gi: Rid, enable: bool)

Source

pub fn voxel_gi_set_use_two_bounces(&mut self, voxel_gi: Rid, enable: bool)

Source

pub fn voxel_gi_set_quality(&mut self, quality: VoxelGiQuality)

Source

pub fn lightmap_create(&mut self) -> Rid

Source

pub fn lightmap_set_textures( &mut self, lightmap: Rid, light: Rid, uses_sh: bool, )

Source

pub fn lightmap_set_probe_bounds(&mut self, lightmap: Rid, bounds: Aabb)

Source

pub fn lightmap_set_probe_interior(&mut self, lightmap: Rid, interior: bool)

Source

pub fn lightmap_set_probe_capture_data( &mut self, lightmap: Rid, points: &PackedVector3Array, point_sh: &PackedColorArray, tetrahedra: &PackedInt32Array, bsp_tree: &PackedInt32Array, )

Source

pub fn lightmap_get_probe_capture_points( &self, lightmap: Rid, ) -> PackedVector3Array

Source

pub fn lightmap_get_probe_capture_sh(&self, lightmap: Rid) -> PackedColorArray

Source

pub fn lightmap_get_probe_capture_tetrahedra( &self, lightmap: Rid, ) -> PackedInt32Array

Source

pub fn lightmap_get_probe_capture_bsp_tree( &self, lightmap: Rid, ) -> PackedInt32Array

Source

pub fn lightmap_set_baked_exposure_normalization( &mut self, lightmap: Rid, baked_exposure: f32, )

Source

pub fn lightmap_set_probe_capture_update_speed(&mut self, speed: f32)

Source

pub fn particles_create(&mut self) -> Rid

Source

pub fn particles_set_mode(&mut self, particles: Rid, mode: ParticlesMode)

Source

pub fn particles_set_emitting(&mut self, particles: Rid, emitting: bool)

Source

pub fn particles_get_emitting(&mut self, particles: Rid) -> bool

Source

pub fn particles_set_amount(&mut self, particles: Rid, amount: i32)

Source

pub fn particles_set_amount_ratio(&mut self, particles: Rid, ratio: f32)

Source

pub fn particles_set_lifetime(&mut self, particles: Rid, lifetime: f64)

Source

pub fn particles_set_one_shot(&mut self, particles: Rid, one_shot: bool)

Source

pub fn particles_set_pre_process_time(&mut self, particles: Rid, time: f64)

Source

pub fn particles_request_process_time(&mut self, particles: Rid, time: f32)

Source

pub fn particles_set_explosiveness_ratio(&mut self, particles: Rid, ratio: f32)

Source

pub fn particles_set_randomness_ratio(&mut self, particles: Rid, ratio: f32)

Source

pub fn particles_set_interp_to_end(&mut self, particles: Rid, factor: f32)

Source

pub fn particles_set_emitter_velocity( &mut self, particles: Rid, velocity: Vector3, )

Source

pub fn particles_set_custom_aabb(&mut self, particles: Rid, aabb: Aabb)

Source

pub fn particles_set_speed_scale(&mut self, particles: Rid, scale: f64)

Source

pub fn particles_set_use_local_coordinates( &mut self, particles: Rid, enable: bool, )

Source

pub fn particles_set_process_material(&mut self, particles: Rid, material: Rid)

Source

pub fn particles_set_fixed_fps(&mut self, particles: Rid, fps: i32)

Source

pub fn particles_set_interpolate(&mut self, particles: Rid, enable: bool)

Source

pub fn particles_set_fractional_delta(&mut self, particles: Rid, enable: bool)

Source

pub fn particles_set_collision_base_size(&mut self, particles: Rid, size: f32)

Source

pub fn particles_set_transform_align( &mut self, particles: Rid, align: ParticlesTransformAlign, )

Source

pub fn particles_set_trails( &mut self, particles: Rid, enable: bool, length_sec: f32, )

Source

pub fn particles_set_trail_bind_poses( &mut self, particles: Rid, bind_poses: &Array<Transform3D>, )

Source

pub fn particles_is_inactive(&mut self, particles: Rid) -> bool

Source

pub fn particles_request_process(&mut self, particles: Rid)

Source

pub fn particles_restart(&mut self, particles: Rid)

Source

pub fn particles_set_subemitter( &mut self, particles: Rid, subemitter_particles: Rid, )

Source

pub fn particles_emit( &mut self, particles: Rid, transform: Transform3D, velocity: Vector3, color: Color, custom: Color, emit_flags: u32, )

Source

pub fn particles_set_draw_order( &mut self, particles: Rid, order: ParticlesDrawOrder, )

Source

pub fn particles_set_draw_passes(&mut self, particles: Rid, count: i32)

Source

pub fn particles_set_draw_pass_mesh( &mut self, particles: Rid, pass: i32, mesh: Rid, )

Source

pub fn particles_get_current_aabb(&mut self, particles: Rid) -> Aabb

Source

pub fn particles_set_emission_transform( &mut self, particles: Rid, transform: Transform3D, )

Source

pub fn particles_collision_create(&mut self) -> Rid

Source

pub fn particles_collision_set_collision_type( &mut self, particles_collision: Rid, type_: ParticlesCollisionType, )

Source

pub fn particles_collision_set_cull_mask( &mut self, particles_collision: Rid, mask: u32, )

Source

pub fn particles_collision_set_sphere_radius( &mut self, particles_collision: Rid, radius: f32, )

Source

pub fn particles_collision_set_box_extents( &mut self, particles_collision: Rid, extents: Vector3, )

Source

pub fn particles_collision_set_attractor_strength( &mut self, particles_collision: Rid, strength: f32, )

Source

pub fn particles_collision_set_attractor_directionality( &mut self, particles_collision: Rid, amount: f32, )

Source

pub fn particles_collision_set_attractor_attenuation( &mut self, particles_collision: Rid, curve: f32, )

Source

pub fn particles_collision_set_field_texture( &mut self, particles_collision: Rid, texture: Rid, )

Source

pub fn particles_collision_height_field_update( &mut self, particles_collision: Rid, )

Source

pub fn particles_collision_set_height_field_resolution( &mut self, particles_collision: Rid, resolution: ParticlesCollisionHeightfieldResolution, )

Source

pub fn particles_collision_set_height_field_mask( &mut self, particles_collision: Rid, mask: u32, )

Source

pub fn fog_volume_create(&mut self) -> Rid

Source

pub fn fog_volume_set_shape(&mut self, fog_volume: Rid, shape: FogVolumeShape)

Source

pub fn fog_volume_set_size(&mut self, fog_volume: Rid, size: Vector3)

Source

pub fn fog_volume_set_material(&mut self, fog_volume: Rid, material: Rid)

Source

pub fn visibility_notifier_create(&mut self) -> Rid

Source

pub fn visibility_notifier_set_aabb(&mut self, notifier: Rid, aabb: Aabb)

Source

pub fn visibility_notifier_set_callbacks( &mut self, notifier: Rid, enter_callable: &Callable, exit_callable: &Callable, )

Source

pub fn occluder_create(&mut self) -> Rid

Source

pub fn occluder_set_mesh( &mut self, occluder: Rid, vertices: &PackedVector3Array, indices: &PackedInt32Array, )

Source

pub fn camera_create(&mut self) -> Rid

Source

pub fn camera_set_perspective( &mut self, camera: Rid, fovy_degrees: f32, z_near: f32, z_far: f32, )

Source

pub fn camera_set_orthogonal( &mut self, camera: Rid, size: f32, z_near: f32, z_far: f32, )

Source

pub fn camera_set_frustum( &mut self, camera: Rid, size: f32, offset: Vector2, z_near: f32, z_far: f32, )

Source

pub fn camera_set_transform(&mut self, camera: Rid, transform: Transform3D)

Source

pub fn camera_set_cull_mask(&mut self, camera: Rid, layers: u32)

Source

pub fn camera_set_environment(&mut self, camera: Rid, env: Rid)

Source

pub fn camera_set_camera_attributes(&mut self, camera: Rid, effects: Rid)

Source

pub fn camera_set_compositor(&mut self, camera: Rid, compositor: Rid)

Source

pub fn camera_set_use_vertical_aspect(&mut self, camera: Rid, enable: bool)

Source

pub fn viewport_create(&mut self) -> Rid

Source

pub fn viewport_set_use_xr(&mut self, viewport: Rid, use_xr: bool)

Source

pub fn viewport_set_size(&mut self, viewport: Rid, width: i32, height: i32)

Source

pub fn viewport_set_active(&mut self, viewport: Rid, active: bool)

Source

pub fn viewport_set_parent_viewport( &mut self, viewport: Rid, parent_viewport: Rid, )

Source

pub fn viewport_attach_to_screen(&mut self, viewport: Rid)

To set the default parameters, use Self::viewport_attach_to_screen_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn viewport_attach_to_screen_ex<'a>( &'a mut self, viewport: Rid, ) -> ExViewportAttachToScreen<'a>

Source

pub fn viewport_set_render_direct_to_screen( &mut self, viewport: Rid, enabled: bool, )

Source

pub fn viewport_set_canvas_cull_mask( &mut self, viewport: Rid, canvas_cull_mask: u32, )

Source

pub fn viewport_set_scaling_3d_mode( &mut self, viewport: Rid, scaling_3d_mode: ViewportScaling3DMode, )

Source

pub fn viewport_set_scaling_3d_scale(&mut self, viewport: Rid, scale: f32)

Source

pub fn viewport_set_fsr_sharpness(&mut self, viewport: Rid, sharpness: f32)

Source

pub fn viewport_set_texture_mipmap_bias( &mut self, viewport: Rid, mipmap_bias: f32, )

Source

pub fn viewport_set_anisotropic_filtering_level( &mut self, viewport: Rid, anisotropic_filtering_level: ViewportAnisotropicFiltering, )

Source

pub fn viewport_set_update_mode( &mut self, viewport: Rid, update_mode: ViewportUpdateMode, )

Source

pub fn viewport_get_update_mode(&self, viewport: Rid) -> ViewportUpdateMode

Source

pub fn viewport_set_clear_mode( &mut self, viewport: Rid, clear_mode: ViewportClearMode, )

Source

pub fn viewport_get_render_target(&self, viewport: Rid) -> Rid

Source

pub fn viewport_get_texture(&self, viewport: Rid) -> Rid

Source

pub fn viewport_set_disable_3d(&mut self, viewport: Rid, disable: bool)

Source

pub fn viewport_set_disable_2d(&mut self, viewport: Rid, disable: bool)

Source

pub fn viewport_set_environment_mode( &mut self, viewport: Rid, mode: ViewportEnvironmentMode, )

Source

pub fn viewport_attach_camera(&mut self, viewport: Rid, camera: Rid)

Source

pub fn viewport_set_scenario(&mut self, viewport: Rid, scenario: Rid)

Source

pub fn viewport_attach_canvas(&mut self, viewport: Rid, canvas: Rid)

Source

pub fn viewport_remove_canvas(&mut self, viewport: Rid, canvas: Rid)

Source

pub fn viewport_set_snap_2d_transforms_to_pixel( &mut self, viewport: Rid, enabled: bool, )

Source

pub fn viewport_set_snap_2d_vertices_to_pixel( &mut self, viewport: Rid, enabled: bool, )

Source

pub fn viewport_set_default_canvas_item_texture_filter( &mut self, viewport: Rid, filter: CanvasItemTextureFilter, )

Source

pub fn viewport_set_default_canvas_item_texture_repeat( &mut self, viewport: Rid, repeat: CanvasItemTextureRepeat, )

Source

pub fn viewport_set_canvas_transform( &mut self, viewport: Rid, canvas: Rid, offset: Transform2D, )

Source

pub fn viewport_set_canvas_stacking( &mut self, viewport: Rid, canvas: Rid, layer: i32, sublayer: i32, )

Source

pub fn viewport_set_transparent_background( &mut self, viewport: Rid, enabled: bool, )

Source

pub fn viewport_set_global_canvas_transform( &mut self, viewport: Rid, transform: Transform2D, )

Source

pub fn viewport_set_sdf_oversize_and_scale( &mut self, viewport: Rid, oversize: ViewportSdfOversize, scale: ViewportSdfScale, )

Source

pub fn viewport_set_positional_shadow_atlas_size( &mut self, viewport: Rid, size: i32, )

To set the default parameters, use Self::viewport_set_positional_shadow_atlas_size_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn viewport_set_positional_shadow_atlas_size_ex<'a>( &'a mut self, viewport: Rid, size: i32, ) -> ExViewportSetPositionalShadowAtlasSize<'a>

Source

pub fn viewport_set_positional_shadow_atlas_quadrant_subdivision( &mut self, viewport: Rid, quadrant: i32, subdivision: i32, )

Source

pub fn viewport_set_msaa_3d(&mut self, viewport: Rid, msaa: ViewportMsaa)

Source

pub fn viewport_set_msaa_2d(&mut self, viewport: Rid, msaa: ViewportMsaa)

Source

pub fn viewport_set_use_hdr_2d(&mut self, viewport: Rid, enabled: bool)

Source

pub fn viewport_set_screen_space_aa( &mut self, viewport: Rid, mode: ViewportScreenSpaceAa, )

Source

pub fn viewport_set_use_taa(&mut self, viewport: Rid, enable: bool)

Source

pub fn viewport_set_use_debanding(&mut self, viewport: Rid, enable: bool)

Source

pub fn viewport_set_use_occlusion_culling( &mut self, viewport: Rid, enable: bool, )

Source

pub fn viewport_set_occlusion_rays_per_thread(&mut self, rays_per_thread: i32)

Source

pub fn viewport_set_occlusion_culling_build_quality( &mut self, quality: ViewportOcclusionCullingBuildQuality, )

Source

pub fn viewport_get_render_info( &mut self, viewport: Rid, type_: ViewportRenderInfoType, info: ViewportRenderInfo, ) -> i32

Source

pub fn viewport_set_debug_draw( &mut self, viewport: Rid, draw: ViewportDebugDraw, )

Source

pub fn viewport_set_measure_render_time(&mut self, viewport: Rid, enable: bool)

Source

pub fn viewport_get_measured_render_time_cpu(&self, viewport: Rid) -> f64

Source

pub fn viewport_get_measured_render_time_gpu(&self, viewport: Rid) -> f64

Source

pub fn viewport_set_vrs_mode(&mut self, viewport: Rid, mode: ViewportVrsMode)

Source

pub fn viewport_set_vrs_update_mode( &mut self, viewport: Rid, mode: ViewportVrsUpdateMode, )

Source

pub fn viewport_set_vrs_texture(&mut self, viewport: Rid, texture: Rid)

Source

pub fn sky_create(&mut self) -> Rid

Source

pub fn sky_set_radiance_size(&mut self, sky: Rid, radiance_size: i32)

Source

pub fn sky_set_mode(&mut self, sky: Rid, mode: SkyMode)

Source

pub fn sky_set_material(&mut self, sky: Rid, material: Rid)

Source

pub fn compositor_effect_create(&mut self) -> Rid

Source

pub fn compositor_effect_set_enabled(&mut self, effect: Rid, enabled: bool)

Source

pub fn compositor_effect_set_callback( &mut self, effect: Rid, callback_type: CompositorEffectCallbackType, callback: &Callable, )

Source

pub fn compositor_effect_set_flag( &mut self, effect: Rid, flag: CompositorEffectFlags, set: bool, )

Source

pub fn compositor_create(&mut self) -> Rid

Source

pub fn compositor_set_compositor_effects( &mut self, compositor: Rid, effects: &Array<Rid>, )

Source

pub fn environment_create(&mut self) -> Rid

Source

pub fn environment_set_background(&mut self, env: Rid, bg: EnvironmentBg)

Source

pub fn environment_set_camera_id(&mut self, env: Rid, id: i32)

Source

pub fn environment_set_sky(&mut self, env: Rid, sky: Rid)

Source

pub fn environment_set_sky_custom_fov(&mut self, env: Rid, scale: f32)

Source

pub fn environment_set_sky_orientation(&mut self, env: Rid, orientation: Basis)

Source

pub fn environment_set_bg_color(&mut self, env: Rid, color: Color)

Source

pub fn environment_set_bg_energy( &mut self, env: Rid, multiplier: f32, exposure_value: f32, )

Source

pub fn environment_set_canvas_max_layer(&mut self, env: Rid, max_layer: i32)

Source

pub fn environment_set_ambient_light(&mut self, env: Rid, color: Color)

To set the default parameters, use Self::environment_set_ambient_light_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn environment_set_ambient_light_ex<'a>( &'a mut self, env: Rid, color: Color, ) -> ExEnvironmentSetAmbientLight<'a>

Source

pub fn environment_set_glow( &mut self, env: Rid, enable: bool, levels: &PackedFloat32Array, intensity: f32, strength: f32, mix: f32, bloom_threshold: f32, blend_mode: EnvironmentGlowBlendMode, hdr_bleed_threshold: f32, hdr_bleed_scale: f32, hdr_luminance_cap: f32, glow_map_strength: f32, glow_map: Rid, )

Source

pub fn environment_set_tonemap( &mut self, env: Rid, tone_mapper: EnvironmentToneMapper, exposure: f32, white: f32, )

Source

pub fn environment_set_adjustment( &mut self, env: Rid, enable: bool, brightness: f32, contrast: f32, saturation: f32, use_1d_color_correction: bool, color_correction: Rid, )

Source

pub fn environment_set_ssr( &mut self, env: Rid, enable: bool, max_steps: i32, fade_in: f32, fade_out: f32, depth_tolerance: f32, )

Source

pub fn environment_set_ssao( &mut self, env: Rid, enable: bool, radius: f32, intensity: f32, power: f32, detail: f32, horizon: f32, sharpness: f32, light_affect: f32, ao_channel_affect: f32, )

Source

pub fn environment_set_fog( &mut self, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32, )

To set the default parameters, use Self::environment_set_fog_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn environment_set_fog_ex<'a>( &'a mut self, env: Rid, enable: bool, light_color: Color, light_energy: f32, sun_scatter: f32, density: f32, height: f32, height_density: f32, aerial_perspective: f32, sky_affect: f32, ) -> ExEnvironmentSetFog<'a>

Source

pub fn environment_set_sdfgi( &mut self, env: Rid, enable: bool, cascades: i32, min_cell_size: f32, y_scale: EnvironmentSdfgiYScale, use_occlusion: bool, bounce_feedback: f32, read_sky: bool, energy: f32, normal_bias: f32, probe_bias: f32, )

Source

pub fn environment_set_volumetric_fog( &mut self, env: Rid, enable: bool, density: f32, albedo: Color, emission: Color, emission_energy: f32, anisotropy: f32, length: f32, p_detail_spread: f32, gi_inject: f32, temporal_reprojection: bool, temporal_reprojection_amount: f32, ambient_inject: f32, sky_affect: f32, )

Source

pub fn environment_glow_set_use_bicubic_upscale(&mut self, enable: bool)

Source

pub fn environment_set_ssr_roughness_quality( &mut self, quality: EnvironmentSsrRoughnessQuality, )

Source

pub fn environment_set_ssao_quality( &mut self, quality: EnvironmentSsaoQuality, half_size: bool, adaptive_target: f32, blur_passes: i32, fadeout_from: f32, fadeout_to: f32, )

Source

pub fn environment_set_ssil_quality( &mut self, quality: EnvironmentSsilQuality, half_size: bool, adaptive_target: f32, blur_passes: i32, fadeout_from: f32, fadeout_to: f32, )

Source

pub fn environment_set_sdfgi_ray_count( &mut self, ray_count: EnvironmentSdfgiRayCount, )

Source

pub fn environment_set_sdfgi_frames_to_converge( &mut self, frames: EnvironmentSdfgiFramesToConverge, )

Source

pub fn environment_set_sdfgi_frames_to_update_light( &mut self, frames: EnvironmentSdfgiFramesToUpdateLight, )

Source

pub fn environment_set_volumetric_fog_volume_size( &mut self, size: i32, depth: i32, )

Source

pub fn environment_set_volumetric_fog_filter_active(&mut self, active: bool)

Source

pub fn screen_space_roughness_limiter_set_active( &mut self, enable: bool, amount: f32, limit: f32, )

Source

pub fn sub_surface_scattering_set_quality( &mut self, quality: SubSurfaceScatteringQuality, )

Source

pub fn sub_surface_scattering_set_scale(&mut self, scale: f32, depth_scale: f32)

Source

pub fn camera_attributes_create(&mut self) -> Rid

Source

pub fn camera_attributes_set_dof_blur_quality( &mut self, quality: DofBlurQuality, use_jitter: bool, )

Source

pub fn camera_attributes_set_dof_blur_bokeh_shape( &mut self, shape: DofBokehShape, )

Source

pub fn camera_attributes_set_dof_blur( &mut self, camera_attributes: Rid, far_enable: bool, far_distance: f32, far_transition: f32, near_enable: bool, near_distance: f32, near_transition: f32, amount: f32, )

Source

pub fn camera_attributes_set_exposure( &mut self, camera_attributes: Rid, multiplier: f32, normalization: f32, )

Source

pub fn camera_attributes_set_auto_exposure( &mut self, camera_attributes: Rid, enable: bool, min_sensitivity: f32, max_sensitivity: f32, speed: f32, scale: f32, )

Source

pub fn scenario_create(&mut self) -> Rid

Source

pub fn scenario_set_environment(&mut self, scenario: Rid, environment: Rid)

Source

pub fn scenario_set_fallback_environment( &mut self, scenario: Rid, environment: Rid, )

Source

pub fn scenario_set_camera_attributes(&mut self, scenario: Rid, effects: Rid)

Source

pub fn scenario_set_compositor(&mut self, scenario: Rid, compositor: Rid)

Source

pub fn instance_create2(&mut self, base: Rid, scenario: Rid) -> Rid

Source

pub fn instance_create(&mut self) -> Rid

Source

pub fn instance_set_base(&mut self, instance: Rid, base: Rid)

Source

pub fn instance_set_scenario(&mut self, instance: Rid, scenario: Rid)

Source

pub fn instance_set_layer_mask(&mut self, instance: Rid, mask: u32)

Source

pub fn instance_set_pivot_data( &mut self, instance: Rid, sorting_offset: f32, use_aabb_center: bool, )

Source

pub fn instance_set_transform(&mut self, instance: Rid, transform: Transform3D)

Source

pub fn instance_set_interpolated(&mut self, instance: Rid, interpolated: bool)

Source

pub fn instance_reset_physics_interpolation(&mut self, instance: Rid)

Source

pub fn instance_attach_object_instance_id(&mut self, instance: Rid, id: u64)

Source

pub fn instance_set_blend_shape_weight( &mut self, instance: Rid, shape: i32, weight: f32, )

Source

pub fn instance_set_surface_override_material( &mut self, instance: Rid, surface: i32, material: Rid, )

Source

pub fn instance_set_visible(&mut self, instance: Rid, visible: bool)

Source

pub fn instance_geometry_set_transparency( &mut self, instance: Rid, transparency: f32, )

Source

pub fn instance_set_custom_aabb(&mut self, instance: Rid, aabb: Aabb)

Source

pub fn instance_attach_skeleton(&mut self, instance: Rid, skeleton: Rid)

Source

pub fn instance_set_extra_visibility_margin( &mut self, instance: Rid, margin: f32, )

Source

pub fn instance_set_visibility_parent(&mut self, instance: Rid, parent: Rid)

Source

pub fn instance_set_ignore_culling(&mut self, instance: Rid, enabled: bool)

Source

pub fn instance_geometry_set_flag( &mut self, instance: Rid, flag: InstanceFlags, enabled: bool, )

Source

pub fn instance_geometry_set_cast_shadows_setting( &mut self, instance: Rid, shadow_casting_setting: ShadowCastingSetting, )

Source

pub fn instance_geometry_set_material_override( &mut self, instance: Rid, material: Rid, )

Source

pub fn instance_geometry_set_material_overlay( &mut self, instance: Rid, material: Rid, )

Source

pub fn instance_geometry_set_visibility_range( &mut self, instance: Rid, min: f32, max: f32, min_margin: f32, max_margin: f32, fade_mode: VisibilityRangeFadeMode, )

Source

pub fn instance_geometry_set_lightmap( &mut self, instance: Rid, lightmap: Rid, lightmap_uv_scale: Rect2, lightmap_slice: i32, )

Source

pub fn instance_geometry_set_lod_bias(&mut self, instance: Rid, lod_bias: f32)

Source

pub fn instance_geometry_set_shader_parameter( &mut self, instance: Rid, parameter: impl AsArg<StringName>, value: &Variant, )

Source

pub fn instance_geometry_get_shader_parameter( &self, instance: Rid, parameter: impl AsArg<StringName>, ) -> Variant

Source

pub fn instance_geometry_get_shader_parameter_default_value( &self, instance: Rid, parameter: impl AsArg<StringName>, ) -> Variant

Source

pub fn instance_geometry_get_shader_parameter_list( &self, instance: Rid, ) -> Array<Dictionary>

Source

pub fn instances_cull_aabb(&self, aabb: Aabb) -> PackedInt64Array

To set the default parameters, use Self::instances_cull_aabb_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn instances_cull_aabb_ex<'a>( &'a self, aabb: Aabb, ) -> ExInstancesCullAabb<'a>

Source

pub fn instances_cull_ray(&self, from: Vector3, to: Vector3) -> PackedInt64Array

To set the default parameters, use Self::instances_cull_ray_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn instances_cull_ray_ex<'a>( &'a self, from: Vector3, to: Vector3, ) -> ExInstancesCullRay<'a>

Source

pub fn instances_cull_convex(&self, convex: &Array<Plane>) -> PackedInt64Array

To set the default parameters, use Self::instances_cull_convex_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn instances_cull_convex_ex<'a>( &'a self, convex: &'a Array<Plane>, ) -> ExInstancesCullConvex<'a>

Source

pub fn canvas_create(&mut self) -> Rid

Source

pub fn canvas_set_item_mirroring( &mut self, canvas: Rid, item: Rid, mirroring: Vector2, )

Source

pub fn canvas_set_item_repeat( &mut self, item: Rid, repeat_size: Vector2, repeat_times: i32, )

Source

pub fn canvas_set_modulate(&mut self, canvas: Rid, color: Color)

Source

pub fn canvas_set_disable_scale(&mut self, disable: bool)

Source

pub fn canvas_texture_create(&mut self) -> Rid

Source

pub fn canvas_texture_set_channel( &mut self, canvas_texture: Rid, channel: CanvasTextureChannel, texture: Rid, )

Source

pub fn canvas_texture_set_shading_parameters( &mut self, canvas_texture: Rid, base_color: Color, shininess: f32, )

Source

pub fn canvas_texture_set_texture_filter( &mut self, canvas_texture: Rid, filter: CanvasItemTextureFilter, )

Source

pub fn canvas_texture_set_texture_repeat( &mut self, canvas_texture: Rid, repeat: CanvasItemTextureRepeat, )

Source

pub fn canvas_item_create(&mut self) -> Rid

Source

pub fn canvas_item_set_parent(&mut self, item: Rid, parent: Rid)

Source

pub fn canvas_item_set_default_texture_filter( &mut self, item: Rid, filter: CanvasItemTextureFilter, )

Source

pub fn canvas_item_set_default_texture_repeat( &mut self, item: Rid, repeat: CanvasItemTextureRepeat, )

Source

pub fn canvas_item_set_visible(&mut self, item: Rid, visible: bool)

Source

pub fn canvas_item_set_light_mask(&mut self, item: Rid, mask: i32)

Source

pub fn canvas_item_set_visibility_layer( &mut self, item: Rid, visibility_layer: u32, )

Source

pub fn canvas_item_set_transform(&mut self, item: Rid, transform: Transform2D)

Source

pub fn canvas_item_set_clip(&mut self, item: Rid, clip: bool)

Source

pub fn canvas_item_set_distance_field_mode(&mut self, item: Rid, enabled: bool)

Source

pub fn canvas_item_set_custom_rect(&mut self, item: Rid, use_custom_rect: bool)

To set the default parameters, use Self::canvas_item_set_custom_rect_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_set_custom_rect_ex<'a>( &'a mut self, item: Rid, use_custom_rect: bool, ) -> ExCanvasItemSetCustomRect<'a>

Source

pub fn canvas_item_set_modulate(&mut self, item: Rid, color: Color)

Source

pub fn canvas_item_set_self_modulate(&mut self, item: Rid, color: Color)

Source

pub fn canvas_item_set_draw_behind_parent(&mut self, item: Rid, enabled: bool)

Source

pub fn canvas_item_set_interpolated(&mut self, item: Rid, interpolated: bool)

Source

pub fn canvas_item_reset_physics_interpolation(&mut self, item: Rid)

Source

pub fn canvas_item_transform_physics_interpolation( &mut self, item: Rid, transform: Transform2D, )

Source

pub fn canvas_item_add_line( &mut self, item: Rid, from: Vector2, to: Vector2, color: Color, )

To set the default parameters, use Self::canvas_item_add_line_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_line_ex<'a>( &'a mut self, item: Rid, from: Vector2, to: Vector2, color: Color, ) -> ExCanvasItemAddLine<'a>

Source

pub fn canvas_item_add_polyline( &mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray, )

To set the default parameters, use Self::canvas_item_add_polyline_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_polyline_ex<'a>( &'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray, ) -> ExCanvasItemAddPolyline<'a>

Source

pub fn canvas_item_add_multiline( &mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray, )

To set the default parameters, use Self::canvas_item_add_multiline_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_multiline_ex<'a>( &'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray, ) -> ExCanvasItemAddMultiline<'a>

Source

pub fn canvas_item_add_rect(&mut self, item: Rid, rect: Rect2, color: Color)

To set the default parameters, use Self::canvas_item_add_rect_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_rect_ex<'a>( &'a mut self, item: Rid, rect: Rect2, color: Color, ) -> ExCanvasItemAddRect<'a>

Source

pub fn canvas_item_add_circle( &mut self, item: Rid, pos: Vector2, radius: f32, color: Color, )

To set the default parameters, use Self::canvas_item_add_circle_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_circle_ex<'a>( &'a mut self, item: Rid, pos: Vector2, radius: f32, color: Color, ) -> ExCanvasItemAddCircle<'a>

Source

pub fn canvas_item_add_texture_rect( &mut self, item: Rid, rect: Rect2, texture: Rid, )

To set the default parameters, use Self::canvas_item_add_texture_rect_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_texture_rect_ex<'a>( &'a mut self, item: Rid, rect: Rect2, texture: Rid, ) -> ExCanvasItemAddTextureRect<'a>

Source

pub fn canvas_item_add_msdf_texture_rect_region( &mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, )

To set the default parameters, use Self::canvas_item_add_msdf_texture_rect_region_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_msdf_texture_rect_region_ex<'a>( &'a mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, ) -> ExCanvasItemAddMsdfTextureRectRegion<'a>

Source

pub fn canvas_item_add_lcd_texture_rect_region( &mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, modulate: Color, )

Source

pub fn canvas_item_add_texture_rect_region( &mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, )

To set the default parameters, use Self::canvas_item_add_texture_rect_region_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_texture_rect_region_ex<'a>( &'a mut self, item: Rid, rect: Rect2, texture: Rid, src_rect: Rect2, ) -> ExCanvasItemAddTextureRectRegion<'a>

Source

pub fn canvas_item_add_nine_patch( &mut self, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2, )

To set the default parameters, use Self::canvas_item_add_nine_patch_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_nine_patch_ex<'a>( &'a mut self, item: Rid, rect: Rect2, source: Rect2, texture: Rid, topleft: Vector2, bottomright: Vector2, ) -> ExCanvasItemAddNinePatch<'a>

Source

pub fn canvas_item_add_primitive( &mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray, uvs: &PackedVector2Array, texture: Rid, )

Source

pub fn canvas_item_add_polygon( &mut self, item: Rid, points: &PackedVector2Array, colors: &PackedColorArray, )

To set the default parameters, use Self::canvas_item_add_polygon_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_polygon_ex<'a>( &'a mut self, item: Rid, points: &'a PackedVector2Array, colors: &'a PackedColorArray, ) -> ExCanvasItemAddPolygon<'a>

Source

pub fn canvas_item_add_triangle_array( &mut self, item: Rid, indices: &PackedInt32Array, points: &PackedVector2Array, colors: &PackedColorArray, )

To set the default parameters, use Self::canvas_item_add_triangle_array_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_triangle_array_ex<'a>( &'a mut self, item: Rid, indices: &'a PackedInt32Array, points: &'a PackedVector2Array, colors: &'a PackedColorArray, ) -> ExCanvasItemAddTriangleArray<'a>

Source

pub fn canvas_item_add_mesh(&mut self, item: Rid, mesh: Rid)

To set the default parameters, use Self::canvas_item_add_mesh_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_mesh_ex<'a>( &'a mut self, item: Rid, mesh: Rid, ) -> ExCanvasItemAddMesh<'a>

Source

pub fn canvas_item_add_multimesh(&mut self, item: Rid, mesh: Rid)

To set the default parameters, use Self::canvas_item_add_multimesh_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_multimesh_ex<'a>( &'a mut self, item: Rid, mesh: Rid, ) -> ExCanvasItemAddMultimesh<'a>

Source

pub fn canvas_item_add_particles( &mut self, item: Rid, particles: Rid, texture: Rid, )

Source

pub fn canvas_item_add_set_transform( &mut self, item: Rid, transform: Transform2D, )

Source

pub fn canvas_item_add_clip_ignore(&mut self, item: Rid, ignore: bool)

Source

pub fn canvas_item_add_animation_slice( &mut self, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64, )

To set the default parameters, use Self::canvas_item_add_animation_slice_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_add_animation_slice_ex<'a>( &'a mut self, item: Rid, animation_length: f64, slice_begin: f64, slice_end: f64, ) -> ExCanvasItemAddAnimationSlice<'a>

Source

pub fn canvas_item_set_sort_children_by_y(&mut self, item: Rid, enabled: bool)

Source

pub fn canvas_item_set_z_index(&mut self, item: Rid, z_index: i32)

Source

pub fn canvas_item_set_z_as_relative_to_parent( &mut self, item: Rid, enabled: bool, )

Source

pub fn canvas_item_set_copy_to_backbuffer( &mut self, item: Rid, enabled: bool, rect: Rect2, )

Source

pub fn canvas_item_attach_skeleton(&mut self, item: Rid, skeleton: Rid)

Source

pub fn canvas_item_clear(&mut self, item: Rid)

Source

pub fn canvas_item_set_draw_index(&mut self, item: Rid, index: i32)

Source

pub fn canvas_item_set_material(&mut self, item: Rid, material: Rid)

Source

pub fn canvas_item_set_use_parent_material(&mut self, item: Rid, enabled: bool)

Source

pub fn canvas_item_set_instance_shader_parameter( &mut self, instance: Rid, parameter: impl AsArg<StringName>, value: &Variant, )

Source

pub fn canvas_item_get_instance_shader_parameter( &self, instance: Rid, parameter: impl AsArg<StringName>, ) -> Variant

Source

pub fn canvas_item_get_instance_shader_parameter_default_value( &self, instance: Rid, parameter: impl AsArg<StringName>, ) -> Variant

Source

pub fn canvas_item_get_instance_shader_parameter_list( &self, instance: Rid, ) -> Array<Dictionary>

Source

pub fn canvas_item_set_visibility_notifier( &mut self, item: Rid, enable: bool, area: Rect2, enter_callable: &Callable, exit_callable: &Callable, )

Source

pub fn canvas_item_set_canvas_group_mode( &mut self, item: Rid, mode: CanvasGroupMode, )

To set the default parameters, use Self::canvas_item_set_canvas_group_mode_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn canvas_item_set_canvas_group_mode_ex<'a>( &'a mut self, item: Rid, mode: CanvasGroupMode, ) -> ExCanvasItemSetCanvasGroupMode<'a>

Source

pub fn debug_canvas_item_get_rect(&mut self, item: Rid) -> Rect2

Source

pub fn canvas_light_create(&mut self) -> Rid

Source

pub fn canvas_light_attach_to_canvas(&mut self, light: Rid, canvas: Rid)

Source

pub fn canvas_light_set_enabled(&mut self, light: Rid, enabled: bool)

Source

pub fn canvas_light_set_texture_scale(&mut self, light: Rid, scale: f32)

Source

pub fn canvas_light_set_transform(&mut self, light: Rid, transform: Transform2D)

Source

pub fn canvas_light_set_texture(&mut self, light: Rid, texture: Rid)

Source

pub fn canvas_light_set_texture_offset(&mut self, light: Rid, offset: Vector2)

Source

pub fn canvas_light_set_color(&mut self, light: Rid, color: Color)

Source

pub fn canvas_light_set_height(&mut self, light: Rid, height: f32)

Source

pub fn canvas_light_set_energy(&mut self, light: Rid, energy: f32)

Source

pub fn canvas_light_set_z_range(&mut self, light: Rid, min_z: i32, max_z: i32)

Source

pub fn canvas_light_set_layer_range( &mut self, light: Rid, min_layer: i32, max_layer: i32, )

Source

pub fn canvas_light_set_item_cull_mask(&mut self, light: Rid, mask: i32)

Source

pub fn canvas_light_set_item_shadow_cull_mask(&mut self, light: Rid, mask: i32)

Source

pub fn canvas_light_set_mode(&mut self, light: Rid, mode: CanvasLightMode)

Source

pub fn canvas_light_set_shadow_enabled(&mut self, light: Rid, enabled: bool)

Source

pub fn canvas_light_set_shadow_filter( &mut self, light: Rid, filter: CanvasLightShadowFilter, )

Source

pub fn canvas_light_set_shadow_color(&mut self, light: Rid, color: Color)

Source

pub fn canvas_light_set_shadow_smooth(&mut self, light: Rid, smooth: f32)

Source

pub fn canvas_light_set_blend_mode( &mut self, light: Rid, mode: CanvasLightBlendMode, )

Source

pub fn canvas_light_set_interpolated(&mut self, light: Rid, interpolated: bool)

Source

pub fn canvas_light_reset_physics_interpolation(&mut self, light: Rid)

Source

pub fn canvas_light_transform_physics_interpolation( &mut self, light: Rid, transform: Transform2D, )

Source

pub fn canvas_light_occluder_create(&mut self) -> Rid

Source

pub fn canvas_light_occluder_attach_to_canvas( &mut self, occluder: Rid, canvas: Rid, )

Source

pub fn canvas_light_occluder_set_enabled( &mut self, occluder: Rid, enabled: bool, )

Source

pub fn canvas_light_occluder_set_polygon(&mut self, occluder: Rid, polygon: Rid)

Source

pub fn canvas_light_occluder_set_as_sdf_collision( &mut self, occluder: Rid, enable: bool, )

Source

pub fn canvas_light_occluder_set_transform( &mut self, occluder: Rid, transform: Transform2D, )

Source

pub fn canvas_light_occluder_set_light_mask(&mut self, occluder: Rid, mask: i32)

Source

pub fn canvas_light_occluder_set_interpolated( &mut self, occluder: Rid, interpolated: bool, )

Source

pub fn canvas_light_occluder_reset_physics_interpolation( &mut self, occluder: Rid, )

Source

pub fn canvas_light_occluder_transform_physics_interpolation( &mut self, occluder: Rid, transform: Transform2D, )

Source

pub fn canvas_occluder_polygon_create(&mut self) -> Rid

Source

pub fn canvas_occluder_polygon_set_shape( &mut self, occluder_polygon: Rid, shape: &PackedVector2Array, closed: bool, )

Source

pub fn canvas_occluder_polygon_set_cull_mode( &mut self, occluder_polygon: Rid, mode: CanvasOccluderPolygonCullMode, )

Source

pub fn canvas_set_shadow_texture_size(&mut self, size: i32)

Source

pub fn global_shader_parameter_add( &mut self, name: impl AsArg<StringName>, type_: GlobalShaderParameterType, default_value: &Variant, )

Source

pub fn global_shader_parameter_remove(&mut self, name: impl AsArg<StringName>)

Source

pub fn global_shader_parameter_get_list(&self) -> Array<StringName>

Source

pub fn global_shader_parameter_set( &mut self, name: impl AsArg<StringName>, value: &Variant, )

Source

pub fn global_shader_parameter_set_override( &mut self, name: impl AsArg<StringName>, value: &Variant, )

Source

pub fn global_shader_parameter_get( &self, name: impl AsArg<StringName>, ) -> Variant

Source

pub fn global_shader_parameter_get_type( &self, name: impl AsArg<StringName>, ) -> GlobalShaderParameterType

Source

pub fn free_rid(&mut self, rid: Rid)

Source

pub fn request_frame_drawn_callback(&mut self, callable: &Callable)

Source

pub fn has_changed(&self) -> bool

Source

pub fn get_rendering_info(&mut self, info: RenderingInfo) -> u64

Source

pub fn get_video_adapter_name(&self) -> GString

Source

pub fn get_video_adapter_vendor(&self) -> GString

Source

pub fn get_video_adapter_api_version(&self) -> GString

Source

pub fn get_current_rendering_driver_name(&self) -> GString

Source

pub fn get_current_rendering_method(&self) -> GString

Source

pub fn make_sphere_mesh( &mut self, latitudes: i32, longitudes: i32, radius: f32, ) -> Rid

Source

pub fn get_test_cube(&mut self) -> Rid

Source

pub fn get_test_texture(&mut self) -> Rid

Source

pub fn get_white_texture(&mut self) -> Rid

Source

pub fn get_default_clear_color(&mut self) -> Color

Source

pub fn set_default_clear_color(&mut self, color: Color)

Source

pub fn has_os_feature(&self, feature: impl AsArg<GString>) -> bool

Source

pub fn set_debug_generate_wireframes(&mut self, generate: bool)

Source

pub fn is_render_loop_enabled(&self) -> bool

Source

pub fn set_render_loop_enabled(&mut self, enabled: bool)

Source

pub fn get_frame_setup_time_cpu(&self) -> f64

Source

pub fn force_sync(&mut self)

Source

pub fn force_draw(&mut self)

To set the default parameters, use Self::force_draw_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn force_draw_ex<'a>(&'a mut self) -> ExForceDraw<'a>

Source

pub fn is_on_render_thread(&mut self) -> bool

Source

pub fn call_on_render_thread(&mut self, callable: &Callable)

Source

pub fn has_feature(&self, feature: Features) -> bool

Methods from Deref<Target = Object>§

Source

pub fn get_class(&self) -> GString

Source

pub fn is_class(&self, class: impl AsArg<GString>) -> bool

Source

pub fn set(&mut self, property: impl AsArg<StringName>, value: &Variant)

Source

pub fn get(&self, property: impl AsArg<StringName>) -> Variant

Source

pub fn set_indexed( &mut self, property_path: impl AsArg<NodePath>, value: &Variant, )

Source

pub fn get_indexed(&self, property_path: impl AsArg<NodePath>) -> Variant

Source

pub fn get_property_list(&self) -> Array<Dictionary>

Source

pub fn get_method_list(&self) -> Array<Dictionary>

Source

pub fn property_can_revert(&self, property: impl AsArg<StringName>) -> bool

Source

pub fn property_get_revert(&self, property: impl AsArg<StringName>) -> Variant

Source

pub fn set_script(&mut self, script: &Variant)

Source

pub fn get_script(&self) -> Variant

Source

pub fn set_meta(&mut self, name: impl AsArg<StringName>, value: &Variant)

Source

pub fn remove_meta(&mut self, name: impl AsArg<StringName>)

Source

pub fn get_meta(&self, name: impl AsArg<StringName>) -> Variant

To set the default parameters, use Self::get_meta_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn get_meta_ex<'a>( &'a self, name: impl AsArg<StringName> + 'a, ) -> ExGetMeta<'a>

Source

pub fn has_meta(&self, name: impl AsArg<StringName>) -> bool

Source

pub fn get_meta_list(&self) -> Array<StringName>

Source

pub fn add_user_signal(&mut self, signal: impl AsArg<GString>)

To set the default parameters, use Self::add_user_signal_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn add_user_signal_ex<'a>( &'a mut self, signal: impl AsArg<GString> + 'a, ) -> ExAddUserSignal<'a>

Source

pub fn has_user_signal(&self, signal: impl AsArg<StringName>) -> bool

Source

pub fn remove_user_signal(&mut self, signal: impl AsArg<StringName>)

Source

pub fn emit_signal( &mut self, signal: impl AsArg<StringName>, varargs: &[Variant], ) -> Error

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_emit_signal( &mut self, signal: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Error, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn call( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_call( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn call_deferred( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Variant

§Panics

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will panic in such a case.

Source

pub fn try_call_deferred( &mut self, method: impl AsArg<StringName>, varargs: &[Variant], ) -> Result<Variant, CallError>

§Return type

This is a varcall method, meaning parameters and return values are passed as Variant. It can detect call failures and will return Err in such a case.

Source

pub fn set_deferred( &mut self, property: impl AsArg<StringName>, value: &Variant, )

Source

pub fn callv( &mut self, method: impl AsArg<StringName>, arg_array: &VariantArray, ) -> Variant

Source

pub fn has_method(&self, method: impl AsArg<StringName>) -> bool

Source

pub fn get_method_argument_count(&self, method: impl AsArg<StringName>) -> i32

Source

pub fn has_signal(&self, signal: impl AsArg<StringName>) -> bool

Source

pub fn get_signal_list(&self) -> Array<Dictionary>

Source

pub fn get_signal_connection_list( &self, signal: impl AsArg<StringName>, ) -> Array<Dictionary>

Source

pub fn get_incoming_connections(&self) -> Array<Dictionary>

Source

pub fn connect( &mut self, signal: impl AsArg<StringName>, callable: &Callable, ) -> Error

To set the default parameters, use Self::connect_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn connect_ex<'a>( &'a mut self, signal: impl AsArg<StringName> + 'a, callable: &'a Callable, ) -> ExConnect<'a>

Source

pub fn disconnect( &mut self, signal: impl AsArg<StringName>, callable: &Callable, )

Source

pub fn is_connected( &self, signal: impl AsArg<StringName>, callable: &Callable, ) -> bool

Source

pub fn has_connections(&self, signal: impl AsArg<StringName>) -> bool

Source

pub fn set_block_signals(&mut self, enable: bool)

Source

pub fn is_blocking_signals(&self) -> bool

Source

pub fn notify_property_list_changed(&mut self)

Source

pub fn set_message_translation(&mut self, enable: bool)

Source

pub fn can_translate_messages(&self) -> bool

Source

pub fn tr(&self, message: impl AsArg<StringName>) -> GString

To set the default parameters, use Self::tr_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn tr_ex<'a>(&'a self, message: impl AsArg<StringName> + 'a) -> ExTr<'a>

Source

pub fn tr_n( &self, message: impl AsArg<StringName>, plural_message: impl AsArg<StringName>, n: i32, ) -> GString

To set the default parameters, use Self::tr_n_ex and its builder methods. See the book for detailed usage instructions.

Source

pub fn tr_n_ex<'a>( &'a self, message: impl AsArg<StringName> + 'a, plural_message: impl AsArg<StringName> + 'a, n: i32, ) -> ExTrN<'a>

Source

pub fn get_translation_domain(&self) -> StringName

Source

pub fn set_translation_domain(&mut self, domain: impl AsArg<StringName>)

Source

pub fn is_queued_for_deletion(&self) -> bool

Source

pub fn cancel_free(&mut self)

Source

pub fn notify(&mut self, what: ObjectNotification)

⚠️ Sends a Godot notification to all classes inherited by the object.

Triggers calls to on_notification(), and depending on the notification, also to Godot’s lifecycle callbacks such as ready().

Starts from the highest ancestor (the Object class) and goes down the hierarchy. See also Godot docs for Object::notification().

§Panics

If you call this method on a user-defined object while holding a GdRef or GdMut guard on the instance, you will encounter a panic. The reason is that the receiving virtual method on_notification() acquires a GdMut lock dynamically, which must be exclusive.

Source

pub fn notify_reversed(&mut self, what: ObjectNotification)

⚠️ Like Self::notify(), but starts at the most-derived class and goes up the hierarchy.

See docs of that method, including the panics.

Trait Implementations§

Source§

impl Bounds for RenderingServer

Source§

type Memory = MemManual

Defines the memory strategy of the static type.
Source§

type Declarer = DeclEngine

Whether this class is a core Godot class provided by the engine, or declared by the user as a Rust struct.
Source§

impl Debug for RenderingServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for RenderingServer

Source§

type Target = Object

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for RenderingServer

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl GodotClass for RenderingServer

Source§

const INIT_LEVEL: InitLevel = crate::init::InitLevel::Servers

Initialization level, during which this class should be initialized with Godot. Read more
Source§

type Base = Object

The immediate superclass of T. This is always a Godot engine class.
Source§

fn class_name() -> ClassName

The name of the class, under which it is registered in Godot. Read more
Source§

fn inherits<U: GodotClass>() -> bool

Returns whether Self inherits from U. Read more
Source§

impl WithSignals for RenderingServer

Available on since_api="4.2" only.
Source§

type SignalCollection<'c, C: WithSignals> = SignalsOfRenderingServer<'c, C>

The associated struct listing all signals of this class. Read more
Source§

impl Inherits<Object> for RenderingServer

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UniformObjectDeref<DeclEngine> for T
where T: GodotClass<Declarer = DeclEngine>,

Source§

type TargetRef<'a> = Gd<T>

Source§

type TargetMut<'a> = Gd<T>

Source§

fn object_as_ref<'a>( gd: &'a Gd<T>, ) -> <T as UniformObjectDeref<DeclEngine>>::TargetRef<'a>

Source§

fn object_as_mut<'a>( gd: &'a mut Gd<T>, ) -> <T as UniformObjectDeref<DeclEngine>>::TargetMut<'a>

Source§

impl<T> Inherits<T> for T
where T: GodotClass,