Implement block-out-from window rule, fix alpha on window screenshots

This commit is contained in:
Ivan Molodetskikh
2024-03-24 09:03:59 +04:00
parent 8b4a9d68e0
commit 493c8dc890
17 changed files with 218 additions and 50 deletions
+11
View File
@@ -19,6 +19,17 @@ pub mod render_elements;
pub mod renderer;
pub mod shaders;
/// What we're rendering for.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum RenderTarget {
/// Rendering to display on screen.
Output,
/// Rendering for a screencast.
Screencast,
/// Rendering for any other screen capture.
ScreenCapture,
}
pub fn render_to_texture(
renderer: &mut GlesRenderer,
size: Size<i32, Physical>,