|
@@ -1,6 +1,6 @@
|
|
|
use binrw::{BinRead, BinWrite, FilePtr64};
|
|
|
|
|
|
-use crate::{pen::PenHeader, types::Rgba};
|
|
|
+use crate::{pen::PenHeader, types::Rgba, layer::LayerHeader};
|
|
|
|
|
|
#[derive(BinRead, Debug)]
|
|
|
pub struct Header {
|
|
@@ -25,13 +25,3 @@ pub struct Thumbnail {
|
|
|
#[br(count = dimension_x * dimension_y)]
|
|
|
pub pixels: Vec<Rgba>,
|
|
|
}
|
|
|
-
|
|
|
-#[derive(BinRead, BinWrite, Debug)]
|
|
|
-pub struct LayerHeader {
|
|
|
- pub layer_count: u32,
|
|
|
- #[br(count = layer_count)]
|
|
|
- pub layers: Vec<Layer>,
|
|
|
-}
|
|
|
-
|
|
|
-#[derive(BinRead, BinWrite, Debug)]
|
|
|
-pub struct Layer {}
|