mirror of
https://github.com/godotengine/godot-cpp.git
synced 2025-12-31 01:48:45 +03:00
[TextServer, GDExtension] Fix building text servers as GDExtension, expose new/changed low-level methods to GDExtension API.
This commit is contained in:
@@ -733,9 +733,9 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl
|
||||
# Special cases.
|
||||
if class_name == "String":
|
||||
result.append("\tstatic String utf8(const char *from, int64_t len = -1);")
|
||||
result.append("\tvoid parse_utf8(const char *from, int64_t len = -1);")
|
||||
result.append("\tError parse_utf8(const char *from, int64_t len = -1);")
|
||||
result.append("\tstatic String utf16(const char16_t *from, int64_t len = -1);")
|
||||
result.append("\tvoid parse_utf16(const char16_t *from, int64_t len = -1);")
|
||||
result.append("\tError parse_utf16(const char16_t *from, int64_t len = -1, bool default_little_endian = true);")
|
||||
result.append("\tCharString utf8() const;")
|
||||
result.append("\tCharString ascii() const;")
|
||||
result.append("\tChar16String utf16() const;")
|
||||
@@ -1601,6 +1601,10 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
|
||||
if class_name == "XMLParser":
|
||||
result.append("\tError _open_buffer(const uint8_t *p_buffer, size_t p_size);")
|
||||
|
||||
if class_name == "Image":
|
||||
result.append("\tuint8_t *ptrw();")
|
||||
result.append("\tconst uint8_t *ptr();")
|
||||
|
||||
if class_name == "FileAccess":
|
||||
result.append("\tuint64_t get_buffer(uint8_t *p_dst, uint64_t p_length) const;")
|
||||
result.append("\tvoid store_buffer(const uint8_t *p_src, uint64_t p_length);")
|
||||
|
||||
Reference in New Issue
Block a user