diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-09 22:08:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-09 22:08:56 +0200 |
| commit | 2cca9b0631eccd66f1d3dec02438642619d7ee47 (patch) | |
| tree | e4770c5a7991330852d9229e74c5a195ba627185 /modules/dlscript/godot/godot_plane.cpp | |
| parent | 0198d2e03cfb8506e4a5c0f45efc43a1ac5d8d1a (diff) | |
| parent | c7f8b22ba07c27ceb91307a178ee7520677018e1 (diff) | |
Merge pull request #8338 from karroffel/dlscript-gdnative-rename
renamed dlscript module to gdnative
Diffstat (limited to 'modules/dlscript/godot/godot_plane.cpp')
| -rw-r--r-- | modules/dlscript/godot/godot_plane.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/dlscript/godot/godot_plane.cpp b/modules/dlscript/godot/godot_plane.cpp deleted file mode 100644 index 883aeb6282..0000000000 --- a/modules/dlscript/godot/godot_plane.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include "godot_plane.h" - -#include "math/plane.h" - -#ifdef __cplusplus -extern "C" { -#endif - -void _plane_api_anchor() { -} - -void GDAPI godot_plane_new(godot_plane *p_pl) { - Plane *pl = (Plane *)p_pl; - *pl = Plane(); -} - -void GDAPI godot_plane_new_with_normal(godot_plane *p_pl, const godot_vector3 *p_normal, const godot_real p_d) { - Plane *pl = (Plane *)p_pl; - const Vector3 *normal = (const Vector3 *)p_normal; - *pl = Plane(*normal, p_d); -} - -void GDAPI godot_plane_set_normal(godot_plane *p_pl, const godot_vector3 *p_normal) { - Plane *pl = (Plane *)p_pl; - const Vector3 *normal = (const Vector3 *)p_normal; - pl->set_normal(*normal); -} - -godot_vector3 godot_plane_get_normal(const godot_plane *p_pl) { - const Plane *pl = (const Plane *)p_pl; - const Vector3 normal = pl->get_normal(); - godot_vector3 *v3 = (godot_vector3 *)&normal; - return *v3; -} - -void GDAPI godot_plane_set_d(godot_plane *p_pl, const godot_real p_d) { - Plane *pl = (Plane *)p_pl; - pl->d = p_d; -} - -godot_real GDAPI godot_plane_get_d(const godot_plane *p_pl) { - const Plane *pl = (const Plane *)p_pl; - return pl->d; -} - -#ifdef __cplusplus -} -#endif |