Struct gdnative::ARVRCamera
[−]
[src]
pub struct ARVRCamera { /* fields omitted */ }
core class ARVRCamera : Camera
(manually managed)
Base class
ARVRCamera inherits Camera 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 ARVRCamera::free
.
Methods
impl ARVRCamera
[src]
pub fn as_camera(&self) -> Camera
[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 ARVRCamera::free
.
pub unsafe fn free(self)
[src]
Manually deallocate the object.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Camera>
pub fn as_spatial(&self) -> Spatial
[src]
Up-cast.
pub fn project_ray_normal(&self, screen_point: Vector2) -> Vector3
[src]
pub fn project_local_ray_normal(&self, screen_point: Vector2) -> Vector3
[src]
pub fn project_ray_origin(&self, screen_point: Vector2) -> Vector3
[src]
pub fn unproject_position(&self, world_point: Vector3) -> Vector2
[src]
pub fn is_position_behind(&self, world_point: Vector3) -> bool
[src]
pub fn project_position(&self, screen_point: Vector2) -> Vector3
[src]
pub fn set_perspective(&mut self, fov: f64, z_near: f64, z_far: f64)
[src]
pub fn set_orthogonal(&mut self, size: f64, z_near: f64, z_far: f64)
[src]
pub fn make_current(&mut self)
[src]
pub fn clear_current(&mut self)
[src]
pub fn set_current(&mut self, arg0: bool)
[src]
pub fn is_current(&self) -> bool
[src]
pub fn get_camera_transform(&self) -> Transform
[src]
pub fn get_fov(&self) -> f64
[src]
pub fn get_size(&self) -> f64
[src]
pub fn get_zfar(&self) -> f64
[src]
pub fn get_znear(&self) -> f64
[src]
pub fn set_fov(&mut self, arg0: f64)
[src]
pub fn set_size(&mut self, arg0: f64)
[src]
pub fn set_zfar(&mut self, arg0: f64)
[src]
pub fn set_znear(&mut self, arg0: f64)
[src]
pub fn set_projection(&mut self, arg0: i64)
[src]
pub fn set_h_offset(&mut self, ofs: f64)
[src]
pub fn get_h_offset(&self) -> f64
[src]
pub fn set_v_offset(&mut self, ofs: f64)
[src]
pub fn get_v_offset(&self) -> f64
[src]
pub fn set_cull_mask(&mut self, mask: i64)
[src]
pub fn get_cull_mask(&self) -> i64
[src]
pub fn set_environment(&mut self, env: Option<Environment>)
[src]
pub fn get_environment(&self) -> Option<Environment>
[src]
pub fn set_keep_aspect_mode(&mut self, mode: i64)
[src]
pub fn set_doppler_tracking(&mut self, mode: i64)
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for ARVRCamera
[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 ARVRCamera
[src]
type Target = Camera
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.