Expose vertex_array_create
This commit is contained in:
parent
c0de8d32d5
commit
e56fc6b338
2 changed files with 10 additions and 0 deletions
|
@ -643,6 +643,15 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="vertex_array_create">
|
||||||
|
<return type="RID" />
|
||||||
|
<param index="0" name="vertex_count" type="int" />
|
||||||
|
<param index="1" name="vertex_format" type="int" />
|
||||||
|
<param index="2" name="src_buffers" type="RID[]" />
|
||||||
|
<description>
|
||||||
|
Creates a vertex array based on the specified buffers.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="vertex_buffer_create">
|
<method name="vertex_buffer_create">
|
||||||
<return type="RID" />
|
<return type="RID" />
|
||||||
<param index="0" name="size_bytes" type="int" />
|
<param index="0" name="size_bytes" type="int" />
|
||||||
|
|
|
@ -393,6 +393,7 @@ void RenderingDevice::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("vertex_buffer_create", "size_bytes", "data", "use_as_storage"), &RenderingDevice::vertex_buffer_create, DEFVAL(Vector<uint8_t>()), DEFVAL(false));
|
ClassDB::bind_method(D_METHOD("vertex_buffer_create", "size_bytes", "data", "use_as_storage"), &RenderingDevice::vertex_buffer_create, DEFVAL(Vector<uint8_t>()), DEFVAL(false));
|
||||||
ClassDB::bind_method(D_METHOD("vertex_format_create", "vertex_descriptions"), &RenderingDevice::_vertex_format_create);
|
ClassDB::bind_method(D_METHOD("vertex_format_create", "vertex_descriptions"), &RenderingDevice::_vertex_format_create);
|
||||||
|
ClassDB::bind_method(D_METHOD("vertex_array_create", "vertex_count", "vertex_format", "src_buffers"), &RenderingDevice::_vertex_array_create);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("index_buffer_create", "size_indices", "format", "data", "use_restart_indices"), &RenderingDevice::index_buffer_create, DEFVAL(Vector<uint8_t>()), DEFVAL(false));
|
ClassDB::bind_method(D_METHOD("index_buffer_create", "size_indices", "format", "data", "use_restart_indices"), &RenderingDevice::index_buffer_create, DEFVAL(Vector<uint8_t>()), DEFVAL(false));
|
||||||
ClassDB::bind_method(D_METHOD("index_array_create", "index_buffer", "index_offset", "index_count"), &RenderingDevice::index_array_create);
|
ClassDB::bind_method(D_METHOD("index_array_create", "index_buffer", "index_offset", "index_count"), &RenderingDevice::index_array_create);
|
||||||
|
|
Loading…
Reference in a new issue