summaryrefslogtreecommitdiff
path: root/servers/rendering_server.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-05 20:35:08 +0200
committerkobewi <kobewi4e@gmail.com>2022-08-23 23:21:32 +0200
commit1abdffe7a029daf634f57132cb5ab5d82a7ccfc9 (patch)
tree1b0d34d6c4bfb94b46b3640e17ce80b5dc291b11 /servers/rendering_server.h
parentd5606503b47a98a5d1d925b2b655760dab850e6e (diff)
Replace Array return types with TypedArray 2
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r--servers/rendering_server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/rendering_server.h b/servers/rendering_server.h
index d04c62bfd2..9e98f528d2 100644
--- a/servers/rendering_server.h
+++ b/servers/rendering_server.h
@@ -42,6 +42,9 @@
#include "servers/display_server.h"
#include "servers/rendering/rendering_device.h"
+template <typename T>
+class TypedArray;
+
class RenderingServer : public Object {
GDCLASS(RenderingServer, Object);
@@ -325,7 +328,7 @@ public:
virtual Error mesh_create_surface_data_from_arrays(SurfaceData *r_surface_data, PrimitiveType p_primitive, const Array &p_arrays, const Array &p_blend_shapes = Array(), const Dictionary &p_lods = Dictionary(), uint32_t p_compress_format = 0);
Array mesh_create_arrays_from_surface_data(const SurfaceData &p_data) const;
Array mesh_surface_get_arrays(RID p_mesh, int p_surface) const;
- Array mesh_surface_get_blend_shape_arrays(RID p_mesh, int p_surface) const;
+ TypedArray<Array> mesh_surface_get_blend_shape_arrays(RID p_mesh, int p_surface) const;
Dictionary mesh_surface_get_lods(RID p_mesh, int p_surface) const;
virtual void mesh_add_surface_from_arrays(RID p_mesh, PrimitiveType p_primitive, const Array &p_arrays, const Array &p_blend_shapes = Array(), const Dictionary &p_lods = Dictionary(), uint32_t p_compress_format = 0);