diff options
| author | Thomas Herzog | 2017-05-19 22:12:14 +0000 |
|---|---|---|
| committer | GitHub | 2017-05-19 22:12:14 +0000 |
| commit | 6fd217d7c3afb1f7e4c68f9ab40883593f617a7e (patch) | |
| tree | e1c16a806b9b5ec71730a5b09c2ff6a4b17bc93c /modules/gdnative/godot/godot_rid.h | |
| parent | a75623f436c215e107ede321afa08a1897552deb (diff) | |
| parent | abcb044bf3f197ef68715f89abec77102bbe58ec (diff) | |
| download | godot-6fd217d.tar.gz godot-6fd217d.tar.zst godot-6fd217d.zip | |
Merge pull request #8821 from touilleMan/gdnative_missing_functions
Finish implementing GDnative builtins bindings
Diffstat (limited to 'modules/gdnative/godot/godot_rid.h')
| -rw-r--r-- | modules/gdnative/godot/godot_rid.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/gdnative/godot/godot_rid.h b/modules/gdnative/godot/godot_rid.h index e00c8f89a..25dc8d965 100644 --- a/modules/gdnative/godot/godot_rid.h +++ b/modules/gdnative/godot/godot_rid.h @@ -37,6 +37,7 @@ extern "C" { #include <stdint.h> #ifndef GODOT_CORE_API_GODOT_RID_TYPE_DEFINED +#define GODOT_CORE_API_GODOT_RID_TYPE_DEFINED typedef struct godot_rid { uint8_t _dont_touch_that[8]; } godot_rid; @@ -44,11 +45,15 @@ typedef struct godot_rid { #include "../godot.h" -void GDAPI godot_rid_new(godot_rid *p_rid, godot_object *p_from); +void GDAPI godot_rid_new(godot_rid *r_dest); -uint32_t GDAPI godot_rid_get_rid(const godot_rid *p_rid); +godot_int GDAPI godot_rid_get_id(const godot_rid *p_self); -void GDAPI godot_rid_destroy(godot_rid *p_rid); +void GDAPI godot_rid_new_with_resource(godot_rid *r_dest, const godot_object *p_from); + +godot_bool GDAPI godot_rid_operator_equal(const godot_rid *p_self, const godot_rid *p_b); + +godot_bool GDAPI godot_rid_operator_less(const godot_rid *p_self, const godot_rid *p_b); #ifdef __cplusplus } |
