Merge pull request #107116 from beicause/expose-mesh-surface-update-index-buffer
Expose `RS.mesh_surface_update_index_region`
This commit is contained in:
commit
37982d4a01
10 changed files with 78 additions and 6 deletions
|
|
@ -2469,6 +2469,14 @@
|
|||
Returns the stride of the attribute buffer for a mesh with given [param format].
|
||||
</description>
|
||||
</method>
|
||||
<method name="mesh_surface_get_format_index_stride" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="format" type="int" enum="RenderingServer.ArrayFormat" is_bitfield="true" />
|
||||
<param index="1" name="vertex_count" type="int" />
|
||||
<description>
|
||||
Returns the stride of the index buffer for a mesh with the given [param format].
|
||||
</description>
|
||||
</method>
|
||||
<method name="mesh_surface_get_format_normal_tangent_stride" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="format" type="int" enum="RenderingServer.ArrayFormat" is_bitfield="true" />
|
||||
|
|
@ -2536,6 +2544,16 @@
|
|||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="mesh_surface_update_index_region">
|
||||
<return type="void" />
|
||||
<param index="0" name="mesh" type="RID" />
|
||||
<param index="1" name="surface" type="int" />
|
||||
<param index="2" name="offset" type="int" />
|
||||
<param index="3" name="data" type="PackedByteArray" />
|
||||
<description>
|
||||
Updates the index buffer of the mesh surface with the given [param data]. The expected data are 16 or 32-bit unsigned integers, which can be determined with [method mesh_surface_get_format_index_stride].
|
||||
</description>
|
||||
</method>
|
||||
<method name="mesh_surface_update_skin_region">
|
||||
<return type="void" />
|
||||
<param index="0" name="mesh" type="RID" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue