2
0
Эх сурвалжийг харах

Rust's import system dictates that we must make directories rather than use individual files to provide a clean public interface

David Golembiowski 5 жил өмнө
parent
commit
778c3afbbb
52 өөрчлөгдсөн 75 нэмэгдсэн , 0 устгасан
  1. BIN
      port/PyAssimp/pyassimp/.structs.py.swp
  2. 1 0
      port/assimp_rs/src/camera/mod.rs
  3. BIN
      port/assimp_rs/src/structs/.mod.rs.swp
  4. 0 0
      port/assimp_rs/src/structs/anim/anim.rs
  5. 2 0
      port/assimp_rs/src/structs/anim/mod.rs
  6. 0 0
      port/assimp_rs/src/structs/blob/blob.rs
  7. 2 0
      port/assimp_rs/src/structs/blob/mod.rs
  8. 0 0
      port/assimp_rs/src/structs/bone/bone.rs
  9. 2 0
      port/assimp_rs/src/structs/bone/mod.rs
  10. 0 0
      port/assimp_rs/src/structs/camera/camera.rs
  11. 2 0
      port/assimp_rs/src/structs/camera/mod.rs
  12. 0 0
      port/assimp_rs/src/structs/color/color.rs
  13. 2 0
      port/assimp_rs/src/structs/color/mod.rs
  14. 0 0
      port/assimp_rs/src/structs/face/face.rs
  15. 2 0
      port/assimp_rs/src/structs/face/mod.rs
  16. 0 0
      port/assimp_rs/src/structs/key/key.rs
  17. 2 0
      port/assimp_rs/src/structs/key/mod.rs
  18. 0 0
      port/assimp_rs/src/structs/light/light.rs
  19. 2 0
      port/assimp_rs/src/structs/light/mod.rs
  20. 0 0
      port/assimp_rs/src/structs/material/material.rs
  21. 2 0
      port/assimp_rs/src/structs/material/mod.rs
  22. 0 0
      port/assimp_rs/src/structs/matrix/matrix.rs
  23. 2 0
      port/assimp_rs/src/structs/matrix/mod.rs
  24. 0 0
      port/assimp_rs/src/structs/memory/memory.rs
  25. 2 0
      port/assimp_rs/src/structs/memory/mod.rs
  26. 0 0
      port/assimp_rs/src/structs/mesh/mesh.rs
  27. 2 0
      port/assimp_rs/src/structs/mesh/mod.rs
  28. 0 0
      port/assimp_rs/src/structs/meta/meta.rs
  29. 2 0
      port/assimp_rs/src/structs/meta/mod.rs
  30. 2 0
      port/assimp_rs/src/structs/node/mod.rs
  31. 0 0
      port/assimp_rs/src/structs/node/node.rs
  32. 2 0
      port/assimp_rs/src/structs/plane/mod.rs
  33. 0 0
      port/assimp_rs/src/structs/plane/plane.rs
  34. 2 0
      port/assimp_rs/src/structs/quaternion/mod.rs
  35. 7 0
      port/assimp_rs/src/structs/quaternion/quaternion.rs
  36. 2 0
      port/assimp_rs/src/structs/ray/mod.rs
  37. 0 0
      port/assimp_rs/src/structs/ray/ray.rs
  38. 2 0
      port/assimp_rs/src/structs/scene/mod.rs
  39. 0 0
      port/assimp_rs/src/structs/scene/scene.rs
  40. 2 0
      port/assimp_rs/src/structs/string/mod.rs
  41. 0 0
      port/assimp_rs/src/structs/string/string.rs
  42. 2 0
      port/assimp_rs/src/structs/texel/mod.rs
  43. 0 0
      port/assimp_rs/src/structs/texel/texel.rs
  44. 2 0
      port/assimp_rs/src/structs/texture/mod.rs
  45. 0 0
      port/assimp_rs/src/structs/texture/texture.rs
  46. 2 0
      port/assimp_rs/src/structs/transform/mod.rs
  47. 0 0
      port/assimp_rs/src/structs/transform/transform.rs
  48. 2 0
      port/assimp_rs/src/structs/vec/mod.rs
  49. 19 0
      port/assimp_rs/src/structs/vec/vec.rs
  50. 2 0
      port/assimp_rs/src/structs/vertex/mod.rs
  51. 0 0
      port/assimp_rs/src/structs/vertex/vertex.rs
  52. 0 0
      port/assimp_rs/src/structs/vertex_weight.rs

BIN
port/PyAssimp/pyassimp/.structs.py.swp


+ 1 - 0
port/assimp_rs/src/camera/mod.rs

@@ -0,0 +1 @@
+pub use self::structs::{Camera};

BIN
port/assimp_rs/src/structs/.mod.rs.swp


+ 0 - 0
port/assimp_rs/src/structs/anim.rs → port/assimp_rs/src/structs/anim/anim.rs


+ 2 - 0
port/assimp_rs/src/structs/anim/mod.rs

@@ -0,0 +1,2 @@
+mod anim;
+

+ 0 - 0
port/assimp_rs/src/structs/blob.rs → port/assimp_rs/src/structs/blob/blob.rs


+ 2 - 0
port/assimp_rs/src/structs/blob/mod.rs

@@ -0,0 +1,2 @@
+mod blob;
+

+ 0 - 0
port/assimp_rs/src/structs/bone.rs → port/assimp_rs/src/structs/bone/bone.rs


+ 2 - 0
port/assimp_rs/src/structs/bone/mod.rs

@@ -0,0 +1,2 @@
+mod bone;
+

+ 0 - 0
port/assimp_rs/src/structs/camera.rs → port/assimp_rs/src/structs/camera/camera.rs


+ 2 - 0
port/assimp_rs/src/structs/camera/mod.rs

@@ -0,0 +1,2 @@
+mod camera;
+

+ 0 - 0
port/assimp_rs/src/structs/color.rs → port/assimp_rs/src/structs/color/color.rs


+ 2 - 0
port/assimp_rs/src/structs/color/mod.rs

@@ -0,0 +1,2 @@
+mod color;
+

+ 0 - 0
port/assimp_rs/src/structs/face.rs → port/assimp_rs/src/structs/face/face.rs


+ 2 - 0
port/assimp_rs/src/structs/face/mod.rs

@@ -0,0 +1,2 @@
+mod face;
+

+ 0 - 0
port/assimp_rs/src/structs/key.rs → port/assimp_rs/src/structs/key/key.rs


+ 2 - 0
port/assimp_rs/src/structs/key/mod.rs

@@ -0,0 +1,2 @@
+mod key;
+

+ 0 - 0
port/assimp_rs/src/structs/light.rs → port/assimp_rs/src/structs/light/light.rs


+ 2 - 0
port/assimp_rs/src/structs/light/mod.rs

@@ -0,0 +1,2 @@
+mod light;
+

+ 0 - 0
port/assimp_rs/src/structs/material.rs → port/assimp_rs/src/structs/material/material.rs


+ 2 - 0
port/assimp_rs/src/structs/material/mod.rs

@@ -0,0 +1,2 @@
+mod material;
+

+ 0 - 0
port/assimp_rs/src/structs/matrix.rs → port/assimp_rs/src/structs/matrix/matrix.rs


+ 2 - 0
port/assimp_rs/src/structs/matrix/mod.rs

@@ -0,0 +1,2 @@
+mod matrix;
+

+ 0 - 0
port/assimp_rs/src/structs/memory.rs → port/assimp_rs/src/structs/memory/memory.rs


+ 2 - 0
port/assimp_rs/src/structs/memory/mod.rs

@@ -0,0 +1,2 @@
+mod memory;
+

+ 0 - 0
port/assimp_rs/src/structs/mesh.rs → port/assimp_rs/src/structs/mesh/mesh.rs


+ 2 - 0
port/assimp_rs/src/structs/mesh/mod.rs

@@ -0,0 +1,2 @@
+mod mesh;
+

+ 0 - 0
port/assimp_rs/src/structs/meta.rs → port/assimp_rs/src/structs/meta/meta.rs


+ 2 - 0
port/assimp_rs/src/structs/meta/mod.rs

@@ -0,0 +1,2 @@
+mod meta;
+

+ 2 - 0
port/assimp_rs/src/structs/node/mod.rs

@@ -0,0 +1,2 @@
+mod node;
+

+ 0 - 0
port/assimp_rs/src/structs/node.rs → port/assimp_rs/src/structs/node/node.rs


+ 2 - 0
port/assimp_rs/src/structs/plane/mod.rs

@@ -0,0 +1,2 @@
+mod plane;
+

+ 0 - 0
port/assimp_rs/src/structs/plane.rs → port/assimp_rs/src/structs/plane/plane.rs


+ 2 - 0
port/assimp_rs/src/structs/quaternion/mod.rs

@@ -0,0 +1,2 @@
+mod quaternion;
+

+ 7 - 0
port/assimp_rs/src/structs/quaternion/quaternion.rs

@@ -0,0 +1,7 @@
+use crate::vec;
+
+#[derive(Clone, Debug, Copy)]
+pub struct Quaternion {
+    _coordinates: vec::Vector4d
+
+}

+ 2 - 0
port/assimp_rs/src/structs/ray/mod.rs

@@ -0,0 +1,2 @@
+mod ray;
+

+ 0 - 0
port/assimp_rs/src/structs/ray.rs → port/assimp_rs/src/structs/ray/ray.rs


+ 2 - 0
port/assimp_rs/src/structs/scene/mod.rs

@@ -0,0 +1,2 @@
+mod scene;
+

+ 0 - 0
port/assimp_rs/src/structs/scene.rs → port/assimp_rs/src/structs/scene/scene.rs


+ 2 - 0
port/assimp_rs/src/structs/string/mod.rs

@@ -0,0 +1,2 @@
+mod string;
+

+ 0 - 0
port/assimp_rs/src/structs/string.rs → port/assimp_rs/src/structs/string/string.rs


+ 2 - 0
port/assimp_rs/src/structs/texel/mod.rs

@@ -0,0 +1,2 @@
+mod texel;
+

+ 0 - 0
port/assimp_rs/src/structs/texel.rs → port/assimp_rs/src/structs/texel/texel.rs


+ 2 - 0
port/assimp_rs/src/structs/texture/mod.rs

@@ -0,0 +1,2 @@
+mod texture;
+

+ 0 - 0
port/assimp_rs/src/structs/texture.rs → port/assimp_rs/src/structs/texture/texture.rs


+ 2 - 0
port/assimp_rs/src/structs/transform/mod.rs

@@ -0,0 +1,2 @@
+mod transform;
+

+ 0 - 0
port/assimp_rs/src/structs/transform.rs → port/assimp_rs/src/structs/transform/transform.rs


+ 2 - 0
port/assimp_rs/src/structs/vec/mod.rs

@@ -0,0 +1,2 @@
+mod vec;
+

+ 19 - 0
port/assimp_rs/src/structs/vec.rs → port/assimp_rs/src/structs/vec/vec.rs

@@ -9,6 +9,13 @@ struct Vector3d {
     z: f32
 }
 
+struct Vector4d {
+    x: f32,
+    y: f32,
+    z: f32,
+    w: f32
+}
+
 impl Vector2d {
     pub fn new(x_f32: f32, y_f32: f32) -> Vector2d {
         Vector2d {
@@ -27,3 +34,15 @@ impl Vector3d {
         }
     }
 }
+
+impl Vector4d {
+    pub fn new(x_f32: f32, y_f32: f32, z_f32: f32, w_f32: f32) -> Vector4d {
+        Vector4d {
+            x: x_f32,
+            y: y_f32,
+            z: z_f32,
+            w: w_f32
+        }
+    }
+}
+

+ 2 - 0
port/assimp_rs/src/structs/vertex/mod.rs

@@ -0,0 +1,2 @@
+mod vertex;
+

+ 0 - 0
port/assimp_rs/src/structs/quaternion.rs → port/assimp_rs/src/structs/vertex/vertex.rs


+ 0 - 0
port/assimp_rs/src/structs/vertex_weight.rs