gl: Add an accessor to the GlWindow underlying a Surface.
@@ -83,6 +83,10 @@ impl Surface {
}
}
+ pub fn window(&self) -> &glutin::GlWindow {
+ &self.window
+ }
+
fn swapchain_formats(&self) -> Vec<f::Format> {
let pixel_format = self.window.get_pixel_format();
let color_bits = pixel_format.color_bits;
