Added a new constructor to Projection.

This commit is contained in:
Relintai 2023-06-02 13:52:23 +02:00
parent f780ad3a18
commit 5a372f9a17
3 changed files with 13 additions and 0 deletions

View File

@ -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;

View File

@ -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",

View File

@ -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);