mirror of
https://github.com/Relintai/gdnative.git
synced 2024-11-10 00:52:11 +01:00
Added missing getters/setters to Vector3/3i/4/4i.
This commit is contained in:
parent
6f32996c63
commit
a77167cf9d
@ -39,6 +39,36 @@ extern "C" {
|
||||
|
||||
static_assert(sizeof(pandemonium_vector3) == sizeof(Vector3), "Vector3 size mismatch");
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_x(const pandemonium_vector3 *p_self) {
|
||||
const Vector3 *self = (const Vector3 *)p_self;
|
||||
return self->x;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3_set_x(pandemonium_vector3 *p_self, const pandemonium_real val) {
|
||||
Vector3 *self = (Vector3 *)p_self;
|
||||
self->x = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_y(const pandemonium_vector3 *p_self) {
|
||||
const Vector3 *self = (const Vector3 *)p_self;
|
||||
return self->y;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3_set_y(pandemonium_vector3 *p_self, const pandemonium_real val) {
|
||||
Vector3 *self = (Vector3 *)p_self;
|
||||
self->y = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_z(const pandemonium_vector3 *p_self) {
|
||||
const Vector3 *self = (const Vector3 *)p_self;
|
||||
return self->z;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3_set_z(pandemonium_vector3 *p_self, const pandemonium_real val) {
|
||||
Vector3 *self = (Vector3 *)p_self;
|
||||
self->z = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI *pandemonium_vector3_operator_index(pandemonium_vector3 *p_self, const pandemonium_int p_idx) {
|
||||
Vector3 *self = (Vector3 *)p_self;
|
||||
return (pandemonium_real *)&self->operator[](p_idx);
|
||||
|
@ -39,6 +39,36 @@ extern "C" {
|
||||
|
||||
static_assert(sizeof(pandemonium_vector3i) == sizeof(Vector3i), "Vector3i size mismatch");
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_x(const pandemonium_vector3i *p_self) {
|
||||
const Vector3i *self = (const Vector3i *)p_self;
|
||||
return self->x;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3i_set_x(pandemonium_vector3i *p_self, const pandemonium_int val) {
|
||||
Vector3i *self = (Vector3i *)p_self;
|
||||
self->x = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_y(const pandemonium_vector3i *p_self) {
|
||||
const Vector3i *self = (const Vector3i *)p_self;
|
||||
return self->y;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3i_set_y(pandemonium_vector3i *p_self, const pandemonium_int val) {
|
||||
Vector3i *self = (Vector3i *)p_self;
|
||||
self->y = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_z(const pandemonium_vector3i *p_self) {
|
||||
const Vector3i *self = (const Vector3i *)p_self;
|
||||
return self->z;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector3i_set_z(pandemonium_vector3i *p_self, const pandemonium_int val) {
|
||||
Vector3i *self = (Vector3i *)p_self;
|
||||
self->z = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI *pandemonium_vector3i_operator_index(pandemonium_vector3i *p_self, const pandemonium_int p_idx) {
|
||||
Vector3i *self = (Vector3i *)p_self;
|
||||
return (pandemonium_int *)&self->operator[](p_idx);
|
||||
|
@ -39,6 +39,46 @@ extern "C" {
|
||||
|
||||
static_assert(sizeof(pandemonium_vector4) == sizeof(Vector4), "Vector4 size mismatch");
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_x(const pandemonium_vector4 *p_self) {
|
||||
const Vector4 *self = (const Vector4 *)p_self;
|
||||
return self->x;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4_set_x(pandemonium_vector4 *p_self, const pandemonium_real val) {
|
||||
Vector4 *self = (Vector4 *)p_self;
|
||||
self->x = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_y(const pandemonium_vector4 *p_self) {
|
||||
const Vector4 *self = (const Vector4 *)p_self;
|
||||
return self->y;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4_set_y(pandemonium_vector4 *p_self, const pandemonium_real val) {
|
||||
Vector4 *self = (Vector4 *)p_self;
|
||||
self->y = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_z(const pandemonium_vector4 *p_self) {
|
||||
const Vector4 *self = (const Vector4 *)p_self;
|
||||
return self->z;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4_set_z(pandemonium_vector4 *p_self, const pandemonium_real val) {
|
||||
Vector4 *self = (Vector4 *)p_self;
|
||||
self->z = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_w(const pandemonium_vector4 *p_self) {
|
||||
const Vector4 *self = (const Vector4 *)p_self;
|
||||
return self->w;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4_set_w(pandemonium_vector4 *p_self, const pandemonium_real val) {
|
||||
Vector4 *self = (Vector4 *)p_self;
|
||||
self->w = val;
|
||||
}
|
||||
|
||||
pandemonium_real GDAPI *pandemonium_vector4_operator_index(pandemonium_vector4 *p_self, const pandemonium_int p_idx) {
|
||||
Vector4 *self = (Vector4 *)p_self;
|
||||
return (pandemonium_real *)&self->operator[](p_idx);
|
||||
|
@ -39,6 +39,46 @@ extern "C" {
|
||||
|
||||
static_assert(sizeof(pandemonium_vector4i) == sizeof(Vector4i), "Vector4i size mismatch");
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_x(const pandemonium_vector4i *p_self) {
|
||||
const Vector4i *self = (const Vector4i *)p_self;
|
||||
return self->x;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4i_set_x(pandemonium_vector4i *p_self, const pandemonium_int val) {
|
||||
Vector4i *self = (Vector4i *)p_self;
|
||||
self->x = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_y(const pandemonium_vector4i *p_self) {
|
||||
const Vector4i *self = (const Vector4i *)p_self;
|
||||
return self->y;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4i_set_y(pandemonium_vector4i *p_self, const pandemonium_int val) {
|
||||
Vector4i *self = (Vector4i *)p_self;
|
||||
self->y = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_z(const pandemonium_vector4i *p_self) {
|
||||
const Vector4i *self = (const Vector4i *)p_self;
|
||||
return self->z;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4i_set_z(pandemonium_vector4i *p_self, const pandemonium_int val) {
|
||||
Vector4i *self = (Vector4i *)p_self;
|
||||
self->z = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_w(const pandemonium_vector4i *p_self) {
|
||||
const Vector4i *self = (const Vector4i *)p_self;
|
||||
return self->w;
|
||||
}
|
||||
|
||||
void GDAPI pandemonium_vector4i_set_w(pandemonium_vector4i *p_self, const pandemonium_int val) {
|
||||
Vector4i *self = (Vector4i *)p_self;
|
||||
self->w = val;
|
||||
}
|
||||
|
||||
pandemonium_int GDAPI *pandemonium_vector4i_operator_index(pandemonium_vector4i *p_self, const pandemonium_int p_idx) {
|
||||
Vector4i *self = (Vector4i *)p_self;
|
||||
return (pandemonium_int *)&self->operator[](p_idx);
|
||||
|
@ -64,6 +64,15 @@ typedef enum {
|
||||
PANDEMONIUM_VECTOR3_AXIS_Z,
|
||||
} pandemonium_vector3_axis;
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_x(const pandemonium_vector3 *p_self);
|
||||
void GDAPI pandemonium_vector3_set_x(pandemonium_vector3 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_y(const pandemonium_vector3 *p_self);
|
||||
void GDAPI pandemonium_vector3_set_y(pandemonium_vector3 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector3_get_z(const pandemonium_vector3 *p_self);
|
||||
void GDAPI pandemonium_vector3_set_z(pandemonium_vector3 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI *pandemonium_vector3_operator_index(pandemonium_vector3 *p_self, const pandemonium_int p_idx);
|
||||
const pandemonium_real GDAPI *pandemonium_vector3_operator_index_const(const pandemonium_vector3 *p_self, const pandemonium_int p_idx);
|
||||
|
||||
|
@ -64,6 +64,15 @@ typedef enum {
|
||||
PANDEMONIUM_VECTOR3I_AXIS_Z,
|
||||
} pandemonium_vector3i_axis;
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_x(const pandemonium_vector3i *p_self);
|
||||
void GDAPI pandemonium_vector3i_set_x(pandemonium_vector3i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_y(const pandemonium_vector3i *p_self);
|
||||
void GDAPI pandemonium_vector3i_set_y(pandemonium_vector3i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector3i_get_z(const pandemonium_vector3i *p_self);
|
||||
void GDAPI pandemonium_vector3i_set_z(pandemonium_vector3i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI *pandemonium_vector3i_operator_index(pandemonium_vector3i *p_self, const pandemonium_int p_idx);
|
||||
const pandemonium_int GDAPI *pandemonium_vector3i_operator_index_const(const pandemonium_vector3i *p_self, const pandemonium_int p_idx);
|
||||
|
||||
|
@ -65,7 +65,17 @@ typedef enum {
|
||||
PANDEMONIUM_VECTOR4_AXIS_W,
|
||||
} pandemonium_vector4_axis;
|
||||
|
||||
//getters / setters
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_x(const pandemonium_vector4 *p_self);
|
||||
void GDAPI pandemonium_vector4_set_x(pandemonium_vector4 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_y(const pandemonium_vector4 *p_self);
|
||||
void GDAPI pandemonium_vector4_set_y(pandemonium_vector4 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_z(const pandemonium_vector4 *p_self);
|
||||
void GDAPI pandemonium_vector4_set_z(pandemonium_vector4 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI pandemonium_vector4_get_w(const pandemonium_vector4 *p_self);
|
||||
void GDAPI pandemonium_vector4_set_w(pandemonium_vector4 *p_self, const pandemonium_real val);
|
||||
|
||||
pandemonium_real GDAPI *pandemonium_vector4_operator_index(pandemonium_vector4 *p_self, const pandemonium_int p_idx);
|
||||
const pandemonium_real GDAPI *pandemonium_vector4_operator_index_const(const pandemonium_vector4 *p_self, const pandemonium_int p_idx);
|
||||
|
@ -65,6 +65,18 @@ typedef enum {
|
||||
PANDEMONIUM_VECTOR4I_AXIS_W,
|
||||
} pandemonium_vector4i_axis;
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_x(const pandemonium_vector4i *p_self);
|
||||
void GDAPI pandemonium_vector4i_set_x(pandemonium_vector4i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_y(const pandemonium_vector4i *p_self);
|
||||
void GDAPI pandemonium_vector4i_set_y(pandemonium_vector4i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_z(const pandemonium_vector4i *p_self);
|
||||
void GDAPI pandemonium_vector4i_set_z(pandemonium_vector4i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI pandemonium_vector4i_get_w(const pandemonium_vector4i *p_self);
|
||||
void GDAPI pandemonium_vector4i_set_w(pandemonium_vector4i *p_self, const pandemonium_int val);
|
||||
|
||||
pandemonium_int GDAPI *pandemonium_vector4i_operator_index(pandemonium_vector4i *p_self, const pandemonium_int p_idx);
|
||||
const pandemonium_int GDAPI *pandemonium_vector4i_operator_index_const(const pandemonium_vector4i *p_self, const pandemonium_int p_idx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user