summaryrefslogtreecommitdiffstats
path: root/core/core_constants.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-08-23 14:53:27 -0300
committerreduz <reduzio@gmail.com>2021-08-23 19:58:40 -0300
commit44d62a9f4b6ac892b1fb9b8998be4162409952e3 (patch)
treecbc5ffa6979314def8adbc229cd94b4adf8afb1c /core/core_constants.cpp
parent679b9be9d30001e8ffc8087e412097f7394cacdd (diff)
downloadredot-engine-44d62a9f4b6ac892b1fb9b8998be4162409952e3.tar.gz
Implement NativeExtension pointer arguments
* Allows calling into native extensions directly with a pointer * Makes it easier to implement some APIs more efficiently * Appears with a "*" in the documentation for the argument. * Implementing the pointer handling is entirely up to the implementation, although the extension API provides some hint. * AudioStream has been implemented as an example, allowing to create NativeExtension based AudioStreams.
Diffstat (limited to 'core/core_constants.cpp')
-rw-r--r--core/core_constants.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/core_constants.cpp b/core/core_constants.cpp
index ffddcbabc4..4f3f1fd16e 100644
--- a/core/core_constants.cpp
+++ b/core/core_constants.cpp
@@ -558,6 +558,7 @@ void register_global_constants() {
BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_NODE_PATH_VALID_TYPES);
BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_SAVE_FILE);
BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_INT_IS_OBJECTID);
+ BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_INT_IS_POINTER);
BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_ARRAY_TYPE);
BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_MAX);