diff --git a/gdnative/projection.cpp b/gdnative/projection.cpp index 77d4ea4..4043705 100644 --- a/gdnative/projection.cpp +++ b/gdnative/projection.cpp @@ -366,6 +366,11 @@ pandemonium_real GDAPI pandemonium_projection_get_lod_multiplier(const pandemoni return self->get_lod_multiplier(); } +void GDAPI pandemonium_projection_new_identity(pandemonium_projection *r_dest) { + Projection *dest = (Projection *)r_dest; + *dest = Projection(); +} + void GDAPI pandemonium_projection_new_vector4s(pandemonium_projection *r_dest, const pandemonium_vector4 *p_x, const pandemonium_vector4 *p_y, const pandemonium_vector4 *p_z, const pandemonium_vector4 *p_w) { const Vector4 *x = (const Vector4 *)p_x; const Vector4 *y = (const Vector4 *)p_y; diff --git a/gdnative_api.json b/gdnative_api.json index 280c0c8..f54a22d 100644 --- a/gdnative_api.json +++ b/gdnative_api.json @@ -3620,6 +3620,13 @@ ["const pandemonium_projection *", "p_self"] ] }, + { + "name": "pandemonium_projection_new_identity", + "return_type": "void", + "arguments": [ + ["pandemonium_projection *", "r_dest"] + ] + }, { "name": "pandemonium_projection_new_vector4s", "return_type": "void", diff --git a/include/gdn/projection.h b/include/gdn/projection.h index 42d077e..bf09740 100644 --- a/include/gdn/projection.h +++ b/include/gdn/projection.h @@ -154,6 +154,7 @@ pandemonium_bool GDAPI pandemonium_projection_operator_equal(const pandemonium_p pandemonium_real GDAPI pandemonium_projection_get_lod_multiplier(const pandemonium_projection *p_self); +void GDAPI pandemonium_projection_new_identity(pandemonium_projection *r_dest); void GDAPI pandemonium_projection_new_vector4s(pandemonium_projection *r_dest, const pandemonium_vector4 *p_x, const pandemonium_vector4 *p_y, const pandemonium_vector4 *p_z, const pandemonium_vector4 *p_w); void GDAPI pandemonium_projection_new_from_projection(pandemonium_projection *r_dest, const pandemonium_projection *p_projection);