diff options
author | alexholly <alexander.holland@live.de> | 2017-06-06 20:33:51 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-09 15:54:02 +0200 |
commit | 935f730170d75955f708b5014da3e11c95fcdac4 (patch) | |
tree | 693c281eb4ed706ba4be9867e7f1276450e63e99 /modules/gdnative | |
parent | 63fd693c1ebd2d3d2c23f3969ca8f6f3e18ff3e4 (diff) |
renamed all Rect3.pos to Rect3.position
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/godot/godot_rect3.cpp | 8 | ||||
-rw-r--r-- | modules/gdnative/godot/godot_rect3.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/gdnative/godot/godot_rect3.cpp b/modules/gdnative/godot/godot_rect3.cpp index 2642424145..e524fa8463 100644 --- a/modules/gdnative/godot/godot_rect3.cpp +++ b/modules/gdnative/godot/godot_rect3.cpp @@ -45,18 +45,18 @@ void GDAPI godot_rect3_new(godot_rect3 *r_dest, const godot_vector3 *p_pos, cons *dest = Rect3(*pos, *size); } -godot_vector3 GDAPI godot_rect3_get_pos(const godot_rect3 *p_self) { +godot_vector3 GDAPI godot_rect3_get_position(const godot_rect3 *p_self) { godot_vector3 raw_ret; const Rect3 *self = (const Rect3 *)p_self; Vector3 *ret = (Vector3 *)&raw_ret; - *ret = self->pos; + *ret = self->position; return raw_ret; } -void GDAPI godot_rect3_set_pos(const godot_rect3 *p_self, const godot_vector3 *p_v) { +void GDAPI godot_rect3_set_position(const godot_rect3 *p_self, const godot_vector3 *p_v) { Rect3 *self = (Rect3 *)p_self; const Vector3 *v = (const Vector3 *)p_v; - self->pos = *v; + self->position = *v; } godot_vector3 GDAPI godot_rect3_get_size(const godot_rect3 *p_self) { diff --git a/modules/gdnative/godot/godot_rect3.h b/modules/gdnative/godot/godot_rect3.h index 6ebc06157b..9e9a49ac27 100644 --- a/modules/gdnative/godot/godot_rect3.h +++ b/modules/gdnative/godot/godot_rect3.h @@ -49,8 +49,8 @@ typedef struct godot_rect3 { void GDAPI godot_rect3_new(godot_rect3 *r_dest, const godot_vector3 *p_pos, const godot_vector3 *p_size); -godot_vector3 GDAPI godot_rect3_get_pos(const godot_rect3 *p_self); -void GDAPI godot_rect3_set_pos(const godot_rect3 *p_self, const godot_vector3 *p_v); +godot_vector3 GDAPI godot_rect3_get_position(const godot_rect3 *p_self); +void GDAPI godot_rect3_set_position(const godot_rect3 *p_self, const godot_vector3 *p_v); godot_vector3 GDAPI godot_rect3_get_size(const godot_rect3 *p_self); void GDAPI godot_rect3_set_size(const godot_rect3 *p_self, const godot_vector3 *p_v); |