|
@@ -56,7 +56,6 @@ public:
|
|
|
int uv_idx = 0;
|
|
|
String texture;
|
|
|
Color color;
|
|
|
- Channel() {}
|
|
|
};
|
|
|
|
|
|
Channel diffuse, specular, emission, bump;
|
|
@@ -116,8 +115,6 @@ public:
|
|
|
|
|
|
float spot_angle = 45;
|
|
|
float spot_exp = 1;
|
|
|
-
|
|
|
- LightData() {}
|
|
|
};
|
|
|
|
|
|
struct MeshData {
|
|
@@ -153,8 +150,6 @@ public:
|
|
|
|
|
|
bool found_double_sided = false;
|
|
|
bool double_sided = true;
|
|
|
-
|
|
|
- MeshData() {}
|
|
|
};
|
|
|
|
|
|
struct CurveData {
|
|
@@ -170,8 +165,6 @@ public:
|
|
|
HashMap<String, Source> sources;
|
|
|
|
|
|
HashMap<String, String> control_vertices;
|
|
|
-
|
|
|
- CurveData() {}
|
|
|
};
|
|
|
|
|
|
struct SkinControllerData {
|
|
@@ -184,7 +177,6 @@ public:
|
|
|
Vector<String> sarray; //maybe for names
|
|
|
Vector<float> array;
|
|
|
int stride = 1;
|
|
|
- Source() {}
|
|
|
};
|
|
|
|
|
|
HashMap<String, Source> sources;
|
|
@@ -207,8 +199,6 @@ public:
|
|
|
} weights;
|
|
|
|
|
|
HashMap<String, Transform3D> bone_rest_map;
|
|
|
-
|
|
|
- SkinControllerData() {}
|
|
|
};
|
|
|
|
|
|
struct MorphControllerData {
|
|
@@ -219,13 +209,11 @@ public:
|
|
|
int stride = 1;
|
|
|
Vector<String> sarray; //maybe for names
|
|
|
Vector<float> array;
|
|
|
- Source() {}
|
|
|
};
|
|
|
|
|
|
HashMap<String, Source> sources;
|
|
|
|
|
|
HashMap<String, String> targets;
|
|
|
- MorphControllerData() {}
|
|
|
};
|
|
|
|
|
|
struct Vertex {
|
|
@@ -303,8 +291,6 @@ public:
|
|
|
return uid < p_vert.uid;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- Vertex() {}
|
|
|
};
|
|
|
|
|
|
struct Node {
|
|
@@ -350,7 +336,6 @@ public:
|
|
|
|
|
|
bool ignore_anim = false;
|
|
|
|
|
|
- Node() {}
|
|
|
virtual ~Node() {
|
|
|
for (int i = 0; i < children.size(); i++) {
|
|
|
memdelete(children[i]);
|
|
@@ -412,8 +397,6 @@ public:
|
|
|
float begin = 0;
|
|
|
float end = 1;
|
|
|
Vector<String> tracks;
|
|
|
-
|
|
|
- AnimationClip() {}
|
|
|
};
|
|
|
|
|
|
struct AnimationTrack {
|
|
@@ -439,15 +422,11 @@ public:
|
|
|
Point2 in_tangent;
|
|
|
Point2 out_tangent;
|
|
|
InterpolationType interp_type = INTERP_LINEAR;
|
|
|
-
|
|
|
- Key() {}
|
|
|
};
|
|
|
|
|
|
Vector<float> get_value_at_time(float p_time) const;
|
|
|
|
|
|
Vector<Key> keys;
|
|
|
-
|
|
|
- AnimationTrack() {}
|
|
|
};
|
|
|
|
|
|
/****************/
|
|
@@ -505,14 +484,10 @@ public:
|
|
|
HashMap<String, Vector<int>> by_id_tracks;
|
|
|
|
|
|
float animation_length = 0;
|
|
|
-
|
|
|
- State() {}
|
|
|
} state;
|
|
|
|
|
|
Error load(const String &p_path, int p_flags = 0);
|
|
|
|
|
|
- Collada();
|
|
|
-
|
|
|
Transform3D fix_transform(const Transform3D &p_transform);
|
|
|
|
|
|
Transform3D get_root_transform() const;
|