summaryrefslogtreecommitdiffstats
path: root/graphics/src/window/gl_compositor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/window/gl_compositor.rs')
-rw-r--r--graphics/src/window/gl_compositor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs
index b1b995f1..23c6d3f8 100644
--- a/graphics/src/window/gl_compositor.rs
+++ b/graphics/src/window/gl_compositor.rs
@@ -1,3 +1,4 @@
+use crate::window::GraphicsInformation;
use crate::{Color, Error, Size, Viewport};
use core::ffi::c_void;
@@ -48,6 +49,9 @@ pub trait GLCompositor: Sized {
/// Resizes the viewport of the [`GLCompositor`].
fn resize_viewport(&mut self, physical_size: Size<u32>);
+ /// Returns [`GraphicsInformation`] used by this [`Compositor`].
+ fn get_information(&self) -> GraphicsInformation;
+
/// Presents the primitives of the [`Renderer`] to the next frame of the
/// [`GLCompositor`].
///