Rename `pathfinder_flash` to `pathfinder_swf` for consistency with other crates
in the Rust Flash ecosystem
This commit is contained in:
parent
82b0826407
commit
336f2ca302
|
@ -1416,18 +1416,6 @@ dependencies = [
|
||||||
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pathfinder_flash"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"pathfinder_geometry 0.3.0",
|
|
||||||
"pathfinder_gl 0.1.0",
|
|
||||||
"pathfinder_gpu 0.1.0",
|
|
||||||
"pathfinder_renderer 0.1.0",
|
|
||||||
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"swf-tree 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pathfinder_geometry"
|
name = "pathfinder_geometry"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
|
@ -1547,6 +1535,18 @@ dependencies = [
|
||||||
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"usvg 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pathfinder_swf"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"pathfinder_geometry 0.3.0",
|
||||||
|
"pathfinder_gl 0.1.0",
|
||||||
|
"pathfinder_gpu 0.1.0",
|
||||||
|
"pathfinder_renderer 0.1.0",
|
||||||
|
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"swf-tree 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pathfinder_text"
|
name = "pathfinder_text"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -2127,11 +2127,11 @@ name = "swf_basic"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gl 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gl 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"pathfinder_flash 0.1.0",
|
|
||||||
"pathfinder_geometry 0.3.0",
|
"pathfinder_geometry 0.3.0",
|
||||||
"pathfinder_gl 0.1.0",
|
"pathfinder_gl 0.1.0",
|
||||||
"pathfinder_gpu 0.1.0",
|
"pathfinder_gpu 0.1.0",
|
||||||
"pathfinder_renderer 0.1.0",
|
"pathfinder_renderer 0.1.0",
|
||||||
|
"pathfinder_swf 0.1.0",
|
||||||
"sdl2 0.32.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"sdl2 0.32.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"sdl2-sys 0.32.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"sdl2-sys 0.32.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"swf-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -16,12 +16,12 @@ members = [
|
||||||
"geometry",
|
"geometry",
|
||||||
"gl",
|
"gl",
|
||||||
"gpu",
|
"gpu",
|
||||||
"flash",
|
|
||||||
"lottie",
|
"lottie",
|
||||||
"metal",
|
"metal",
|
||||||
"renderer",
|
"renderer",
|
||||||
"simd",
|
"simd",
|
||||||
"svg",
|
"svg",
|
||||||
|
"swf",
|
||||||
"text",
|
"text",
|
||||||
"ui",
|
"ui",
|
||||||
"utils/area-lut",
|
"utils/area-lut",
|
||||||
|
|
|
@ -12,9 +12,6 @@ sdl2-sys = "0.32"
|
||||||
swf-parser = "0.7.0"
|
swf-parser = "0.7.0"
|
||||||
swf-tree = "0.7.0"
|
swf-tree = "0.7.0"
|
||||||
|
|
||||||
[dependencies.pathfinder_flash]
|
|
||||||
path = "../../flash"
|
|
||||||
|
|
||||||
[dependencies.pathfinder_geometry]
|
[dependencies.pathfinder_geometry]
|
||||||
path = "../../geometry"
|
path = "../../geometry"
|
||||||
|
|
||||||
|
@ -26,3 +23,6 @@ path = "../../gpu"
|
||||||
|
|
||||||
[dependencies.pathfinder_renderer]
|
[dependencies.pathfinder_renderer]
|
||||||
path = "../../renderer"
|
path = "../../renderer"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_swf]
|
||||||
|
path = "../../swf"
|
||||||
|
|
|
@ -21,7 +21,7 @@ use sdl2::event::Event;
|
||||||
use sdl2::keyboard::Keycode;
|
use sdl2::keyboard::Keycode;
|
||||||
use sdl2::video::GLProfile;
|
use sdl2::video::GLProfile;
|
||||||
use pathfinder_renderer::scene::Scene;
|
use pathfinder_renderer::scene::Scene;
|
||||||
use pathfinder_flash::{draw_paths_into_scene, process_swf_tags};
|
use pathfinder_swf::{draw_paths_into_scene, process_swf_tags};
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::read;
|
use std::fs::read;
|
||||||
use pathfinder_geometry::basic::transform2d::Transform2DF;
|
use pathfinder_geometry::basic::transform2d::Transform2DF;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pathfinder_flash"
|
name = "pathfinder_swf"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Jon Hardie <jon@hardiesoft.com>"]
|
authors = ["Jon Hardie <jon@hardiesoft.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
|
@ -1,4 +1,4 @@
|
||||||
// pathfinder/flash/src/lib.rs
|
// pathfinder/swf/src/lib.rs
|
||||||
//
|
//
|
||||||
// Copyright © 2019 The Pathfinder Project Developers.
|
// Copyright © 2019 The Pathfinder Project Developers.
|
||||||
//
|
//
|
|
@ -1,3 +1,13 @@
|
||||||
|
// pathfinder/swf/src/shapes.rs
|
||||||
|
//
|
||||||
|
// Copyright © 2019 The Pathfinder Project Developers.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
use pathfinder_renderer::paint::Paint;
|
use pathfinder_renderer::paint::Paint;
|
||||||
use pathfinder_geometry::stroke::{LineJoin, LineCap};
|
use pathfinder_geometry::stroke::{LineJoin, LineCap};
|
||||||
use crate::{Twips, Point2};
|
use crate::{Twips, Point2};
|
|
@ -1,3 +1,13 @@
|
||||||
|
// pathfinder/swf/src/timeline.rs
|
||||||
|
//
|
||||||
|
// Copyright © 2019 The Pathfinder Project Developers.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
struct PlacementInfo {
|
struct PlacementInfo {
|
||||||
symbol_id: u32,
|
symbol_id: u32,
|
||||||
translate_x: Twips,
|
translate_x: Twips,
|
Loading…
Reference in New Issue