mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
d8923d8c74
Split functions from gltf document import and export into six functions. Use base path to allow two code paths based on an empty base path or a full base path. Add uri decode in _parse_buffers.
65 lines
2.2 KiB
XML
65 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="GLTFDocument" inherits="Resource" version="4.0">
|
|
<brief_description>
|
|
</brief_description>
|
|
<description>
|
|
Append a glTF2 3d format from a file, buffer or scene and then write to the filesystem, buffer or scene.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="append_from_buffer">
|
|
<return type="int" enum="Error" />
|
|
<argument index="0" name="bytes" type="PackedByteArray" />
|
|
<argument index="1" name="base_path" type="String" />
|
|
<argument index="2" name="state" type="GLTFState" />
|
|
<argument index="3" name="flags" type="int" default="0" />
|
|
<argument index="4" name="bake_fps" type="int" default="30" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="append_from_file">
|
|
<return type="int" enum="Error" />
|
|
<argument index="0" name="path" type="String" />
|
|
<argument index="1" name="state" type="GLTFState" />
|
|
<argument index="2" name="flags" type="int" default="0" />
|
|
<argument index="3" name="bake_fps" type="int" default="30" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="append_from_scene">
|
|
<return type="int" enum="Error" />
|
|
<argument index="0" name="node" type="Node" />
|
|
<argument index="1" name="state" type="GLTFState" />
|
|
<argument index="2" name="flags" type="int" default="0" />
|
|
<argument index="3" name="bake_fps" type="int" default="30" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="generate_buffer">
|
|
<return type="PackedByteArray" />
|
|
<argument index="0" name="state" type="GLTFState" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="generate_scene">
|
|
<return type="Node" />
|
|
<argument index="0" name="state" type="GLTFState" />
|
|
<argument index="1" name="bake_fps" type="int" default="30" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="write_to_filesystem">
|
|
<return type="int" enum="Error" />
|
|
<argument index="0" name="state" type="GLTFState" />
|
|
<argument index="1" name="path" type="String" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="extensions" type="GLTFDocumentExtension[]" setter="set_extensions" getter="get_extensions" default="[]">
|
|
</member>
|
|
</members>
|
|
</class>
|