feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_ACCESSOR_H
|
||||
#define GLTF_ACCESSOR_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -133,5 +132,3 @@ public:
|
|||
|
||||
VARIANT_ENUM_CAST(GLTFAccessor::GLTFAccessorType);
|
||||
VARIANT_ENUM_CAST(GLTFAccessor::GLTFComponentType);
|
||||
|
||||
#endif // GLTF_ACCESSOR_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_ANIMATION_H
|
||||
#define GLTF_ANIMATION_H
|
||||
#pragma once
|
||||
|
||||
#include "scene/resources/animation.h"
|
||||
|
||||
|
|
@ -86,5 +85,3 @@ public:
|
|||
|
||||
GLTFAnimation();
|
||||
};
|
||||
|
||||
#endif // GLTF_ANIMATION_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_BUFFER_VIEW_H
|
||||
#define GLTF_BUFFER_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -80,5 +79,3 @@ public:
|
|||
|
||||
Vector<uint8_t> load_buffer_view_data(const Ref<GLTFState> p_state) const;
|
||||
};
|
||||
|
||||
#endif // GLTF_BUFFER_VIEW_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_CAMERA_H
|
||||
#define GLTF_CAMERA_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource.h"
|
||||
|
||||
|
|
@ -74,5 +73,3 @@ public:
|
|||
static Ref<GLTFCamera> from_dictionary(const Dictionary p_dictionary);
|
||||
virtual Dictionary to_dictionary() const;
|
||||
};
|
||||
|
||||
#endif // GLTF_CAMERA_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_MESH_H
|
||||
#define GLTF_MESH_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -60,5 +59,3 @@ public:
|
|||
Variant get_additional_data(const StringName &p_extension_name);
|
||||
void set_additional_data(const StringName &p_extension_name, Variant p_additional_data);
|
||||
};
|
||||
|
||||
#endif // GLTF_MESH_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_NODE_H
|
||||
#define GLTF_NODE_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -108,5 +107,3 @@ public:
|
|||
|
||||
NodePath get_scene_node_path(Ref<GLTFState> p_state, bool p_handle_skeletons = true);
|
||||
};
|
||||
|
||||
#endif // GLTF_NODE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
#define GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
#pragma once
|
||||
|
||||
#include "core/math/expression.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
|
|
@ -100,5 +99,3 @@ public:
|
|||
};
|
||||
|
||||
VARIANT_ENUM_CAST(GLTFObjectModelProperty::GLTFObjectModelType);
|
||||
|
||||
#endif // GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_SKELETON_H
|
||||
#define GLTF_SKELETON_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -103,5 +102,3 @@ public:
|
|||
|
||||
int32_t get_bone_attachment_count();
|
||||
};
|
||||
|
||||
#endif // GLTF_SKELETON_H
|
||||
|
|
|
|||
|
|
@ -145,9 +145,8 @@ Dictionary GLTFSkin::get_joint_i_to_name() {
|
|||
|
||||
void GLTFSkin::set_joint_i_to_name(Dictionary p_joint_i_to_name) {
|
||||
joint_i_to_name = HashMap<int, StringName>();
|
||||
Array keys = p_joint_i_to_name.keys();
|
||||
for (int i = 0; i < keys.size(); i++) {
|
||||
joint_i_to_name[keys[i]] = p_joint_i_to_name[keys[i]];
|
||||
for (const KeyValue<Variant, Variant> &kv : p_joint_i_to_name) {
|
||||
joint_i_to_name[kv.key] = kv.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -205,18 +204,18 @@ Error GLTFSkin::from_dictionary(const Dictionary &dict) {
|
|||
ERR_FAIL_COND_V(!dict.has("joint_i_to_bone_i"), ERR_INVALID_DATA);
|
||||
Dictionary joint_i_to_bone_i_dict = dict["joint_i_to_bone_i"];
|
||||
joint_i_to_bone_i.clear();
|
||||
for (int i = 0; i < joint_i_to_bone_i_dict.keys().size(); ++i) {
|
||||
int key = joint_i_to_bone_i_dict.keys()[i];
|
||||
int value = joint_i_to_bone_i_dict[key];
|
||||
for (const KeyValue<Variant, Variant> &kv : joint_i_to_bone_i_dict) {
|
||||
int key = kv.key;
|
||||
int value = kv.value;
|
||||
joint_i_to_bone_i[key] = value;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(!dict.has("joint_i_to_name"), ERR_INVALID_DATA);
|
||||
Dictionary joint_i_to_name_dict = dict["joint_i_to_name"];
|
||||
joint_i_to_name.clear();
|
||||
for (int i = 0; i < joint_i_to_name_dict.keys().size(); ++i) {
|
||||
int key = joint_i_to_name_dict.keys()[i];
|
||||
StringName value = joint_i_to_name_dict[key];
|
||||
for (const KeyValue<Variant, Variant> &kv : joint_i_to_name_dict) {
|
||||
int key = kv.key;
|
||||
StringName value = kv.value;
|
||||
joint_i_to_name[key] = value;
|
||||
}
|
||||
if (dict.has("godot_skin")) {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_SKIN_H
|
||||
#define GLTF_SKIN_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -116,5 +115,3 @@ public:
|
|||
Dictionary to_dictionary();
|
||||
Error from_dictionary(const Dictionary &dict);
|
||||
};
|
||||
|
||||
#endif // GLTF_SKIN_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_TEXTURE_H
|
||||
#define GLTF_TEXTURE_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -51,5 +50,3 @@ public:
|
|||
GLTFTextureSamplerIndex get_sampler() const;
|
||||
void set_sampler(GLTFTextureSamplerIndex val);
|
||||
};
|
||||
|
||||
#endif // GLTF_TEXTURE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_TEXTURE_SAMPLER_H
|
||||
#define GLTF_TEXTURE_SAMPLER_H
|
||||
#pragma once
|
||||
|
||||
#include "scene/resources/material.h"
|
||||
|
||||
|
|
@ -158,5 +157,3 @@ private:
|
|||
|
||||
VARIANT_ENUM_CAST(GLTFTextureSampler::FilterMode);
|
||||
VARIANT_ENUM_CAST(GLTFTextureSampler::WrapMode);
|
||||
|
||||
#endif // GLTF_TEXTURE_SAMPLER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue