-
|
Hi! I made a software rasterizer and I'm making an interactive story/game with it. The rasterizer outputs (say) 640x480. I'd like to scale that up to whatever the fullscreen resolution is on my laptop. I understand it won't be pixel perfect; I'm okay with some kind of compromise filtering/sampling/smoothing type thing. I've been using pixels for screen output so far and it's been fine, except for the big black border. I ... just want fullscreen output or a least to take up the full size available on my screen. I know some other libraries work by drawing a textured quad on the screen. Idk if that's what pixels is doing. Naively it seems certainly possible to just do some kind of scaling to get my output to fit on the screen. What are my options? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Have you tried Lines 58 to 66 in 21bae15 Lines 308 to 323 in 21bae15 You'll have to use a git reference instead of the latest published version (0.15). The only drawbacks are that you don't get automatic patch updates if you pin the revision or you get breaking changes if you don't (assuming you run |
Beta Was this translation helpful? Give feedback.
Have you tried
ScalingMode::Fillon the (unpublished)mainbranch?pixels/src/lib.rs
Lines 58 to 66 in 21bae15
pixels/src/lib.rs
Lines 308 to 323 in 21bae15