33 #include "scene/3d/spatial.h" 34 #include "scene/main/viewport.h" 35 #include "scene/resources/environment.h" 45 PROJECTION_PERSPECTIVE,
66 KeepAspect keep_aspect;
77 virtual bool _can_gizmo_scale()
const;
78 virtual RES _get_gizmo_geometry()
const;
83 void _update_audio_listener_state();
86 void _update_camera();
87 virtual void _request_camera_update();
88 void _update_camera_mode();
93 void _notification(
int p_what);
95 static void _bind_methods();
101 NOTIFICATION_BECAME_CURRENT=50,
102 NOTIFICATION_LOST_CURRENT=51
105 void set_perspective(
float p_fovy_degrees,
float p_z_near,
float p_z_far);
106 void set_orthogonal(
float p_size,
float p_z_near,
float p_z_far);
109 void clear_current();
110 bool is_current()
const;
112 RID get_camera()
const;
114 float get_fov()
const;
115 float get_size()
const;
116 float get_zfar()
const;
117 float get_znear()
const;
118 Projection get_projection()
const;
120 virtual Transform get_camera_transform()
const;
124 Vector3 project_local_ray_normal(
const Point2& p_point)
const;
126 bool is_position_behind(
const Vector3& p_pos)
const;
129 void set_visible_layers(uint32_t p_layers);
130 uint32_t get_visible_layers()
const;
137 void set_keep_aspect_mode(KeepAspect p_aspect);
138 KeepAspect get_keep_aspect_mode()
const;
141 void set_v_offset(
float p_offset);
142 float get_v_offset()
const;
144 void set_h_offset(
float p_offset);
145 float get_h_offset()
const;
154 VARIANT_ENUM_CAST( Camera::Projection );
155 VARIANT_ENUM_CAST( Camera::KeepAspect );
Definition: viewport.h:75
Definition: string_db.h:48