diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:47:24 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:50:02 +0100 |
commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
tree | a3c28058efb7a80faed23bff683fe0931859ed52 /scene/3d/camera.cpp | |
parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
download | redot-engine-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz |
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer
This is a step towards fixing #56
Diffstat (limited to 'scene/3d/camera.cpp')
-rw-r--r-- | scene/3d/camera.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index 5bd2c771ee..2e04f2d8bc 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -548,34 +548,34 @@ Camera::KeepAspect Camera::get_keep_aspect_mode() const{ void Camera::_bind_methods() { - ClassDB::bind_method( _MD("project_ray_normal","screen_point"), &Camera::project_ray_normal); - ClassDB::bind_method( _MD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal); - ClassDB::bind_method( _MD("project_ray_origin","screen_point"), &Camera::project_ray_origin); - ClassDB::bind_method( _MD("unproject_position","world_point"), &Camera::unproject_position); - ClassDB::bind_method( _MD("is_position_behind","world_point"), &Camera::is_position_behind); - ClassDB::bind_method( _MD("project_position","screen_point"), &Camera::project_position); - ClassDB::bind_method( _MD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective ); - ClassDB::bind_method( _MD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal ); - ClassDB::bind_method( _MD("make_current"),&Camera::make_current ); - ClassDB::bind_method( _MD("clear_current"),&Camera::clear_current ); - ClassDB::bind_method( _MD("is_current"),&Camera::is_current ); - ClassDB::bind_method( _MD("get_camera_transform"),&Camera::get_camera_transform ); - ClassDB::bind_method( _MD("get_fov"),&Camera::get_fov ); - ClassDB::bind_method( _MD("get_size"),&Camera::get_size ); - ClassDB::bind_method( _MD("get_zfar"),&Camera::get_zfar ); - ClassDB::bind_method( _MD("get_znear"),&Camera::get_znear ); - ClassDB::bind_method( _MD("get_projection"),&Camera::get_projection ); - ClassDB::bind_method( _MD("set_h_offset","ofs"),&Camera::set_h_offset ); - ClassDB::bind_method( _MD("get_h_offset"),&Camera::get_h_offset ); - ClassDB::bind_method( _MD("set_v_offset","ofs"),&Camera::set_v_offset ); - ClassDB::bind_method( _MD("get_v_offset"),&Camera::get_v_offset ); - ClassDB::bind_method( _MD("set_cull_mask","mask"),&Camera::set_cull_mask ); - ClassDB::bind_method( _MD("get_cull_mask"),&Camera::get_cull_mask ); - ClassDB::bind_method( _MD("set_environment","env:Environment"),&Camera::set_environment ); - ClassDB::bind_method( _MD("get_environment:Environment"),&Camera::get_environment ); - ClassDB::bind_method( _MD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode ); - ClassDB::bind_method( _MD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode ); - //ClassDB::bind_method( _MD("_camera_make_current"),&Camera::_camera_make_current ); + ClassDB::bind_method(D_METHOD("project_ray_normal","screen_point"), &Camera::project_ray_normal); + ClassDB::bind_method(D_METHOD("project_local_ray_normal","screen_point"), &Camera::project_local_ray_normal); + ClassDB::bind_method(D_METHOD("project_ray_origin","screen_point"), &Camera::project_ray_origin); + ClassDB::bind_method(D_METHOD("unproject_position","world_point"), &Camera::unproject_position); + ClassDB::bind_method(D_METHOD("is_position_behind","world_point"), &Camera::is_position_behind); + ClassDB::bind_method(D_METHOD("project_position","screen_point"), &Camera::project_position); + ClassDB::bind_method(D_METHOD("set_perspective","fov","z_near","z_far"),&Camera::set_perspective ); + ClassDB::bind_method(D_METHOD("set_orthogonal","size","z_near","z_far"),&Camera::set_orthogonal ); + ClassDB::bind_method(D_METHOD("make_current"),&Camera::make_current ); + ClassDB::bind_method(D_METHOD("clear_current"),&Camera::clear_current ); + ClassDB::bind_method(D_METHOD("is_current"),&Camera::is_current ); + ClassDB::bind_method(D_METHOD("get_camera_transform"),&Camera::get_camera_transform ); + ClassDB::bind_method(D_METHOD("get_fov"),&Camera::get_fov ); + ClassDB::bind_method(D_METHOD("get_size"),&Camera::get_size ); + ClassDB::bind_method(D_METHOD("get_zfar"),&Camera::get_zfar ); + ClassDB::bind_method(D_METHOD("get_znear"),&Camera::get_znear ); + ClassDB::bind_method(D_METHOD("get_projection"),&Camera::get_projection ); + ClassDB::bind_method(D_METHOD("set_h_offset","ofs"),&Camera::set_h_offset ); + ClassDB::bind_method(D_METHOD("get_h_offset"),&Camera::get_h_offset ); + ClassDB::bind_method(D_METHOD("set_v_offset","ofs"),&Camera::set_v_offset ); + ClassDB::bind_method(D_METHOD("get_v_offset"),&Camera::get_v_offset ); + ClassDB::bind_method(D_METHOD("set_cull_mask","mask"),&Camera::set_cull_mask ); + ClassDB::bind_method(D_METHOD("get_cull_mask"),&Camera::get_cull_mask ); + ClassDB::bind_method(D_METHOD("set_environment","env:Environment"),&Camera::set_environment ); + ClassDB::bind_method(D_METHOD("get_environment:Environment"),&Camera::get_environment ); + ClassDB::bind_method(D_METHOD("set_keep_aspect_mode","mode"),&Camera::set_keep_aspect_mode ); + ClassDB::bind_method(D_METHOD("get_keep_aspect_mode"),&Camera::get_keep_aspect_mode ); + //ClassDB::bind_method(D_METHOD("_camera_make_current"),&Camera::_camera_make_current ); BIND_CONSTANT( PROJECTION_PERSPECTIVE ); BIND_CONSTANT( PROJECTION_ORTHOGONAL ); |