Make Upload Texture node resolution-aware (#2018)

* Make UploadTextureNode resolution aware

* Add TextureFrame implementations for MonitorNode

* Add TextureFrame implementation to TransformNode
This commit is contained in:
Dennis Kobert
2024-10-03 19:32:34 +02:00
committed by GitHub
parent 2d86fb24ab
commit d2f791cfb3
4 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
use crate::application_io::TextureFrame;
use crate::raster::bbox::AxisAlignedBbox;
use crate::raster::{ImageFrame, Pixel};
use crate::vector::VectorData;
@@ -216,6 +217,7 @@ async fn transform<I: Into<Footprint> + 'n + ApplyTransform + Clone + Send + Syn
(),
(),
(),
(),
Footprint,
)]
mut input: I,
@@ -223,9 +225,11 @@ async fn transform<I: Into<Footprint> + 'n + ApplyTransform + Clone + Send + Syn
() -> VectorData,
() -> GraphicGroup,
() -> ImageFrame<Color>,
() -> TextureFrame,
Footprint -> VectorData,
Footprint -> GraphicGroup,
Footprint -> ImageFrame<Color>,
Footprint -> TextureFrame,
)]
transform_target: impl Node<I, Output = T>,
translate: DVec2,