From 729551f82859673fcf9b4b26dbb145184a2a7ca7 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 24 Nov 2014 19:35:31 +0100 Subject: Implement multisampling for x11 --- src/win32/init.rs | 3 ++- src/win32/mod.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/win32') diff --git a/src/win32/init.rs b/src/win32/init.rs index 29b45cb..62c1f54 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -16,7 +16,8 @@ pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: Strin builder_monitor: Option, builder_gl_version: Option<(uint, uint)>, builder_debug: bool, builder_vsync: bool, builder_hidden: bool, - builder_sharelists: Option) -> Result + builder_sharelists: Option, builder_multisampling: Option) + -> Result { use std::mem; use std::os; diff --git a/src/win32/mod.rs b/src/win32/mod.rs index ef2e3ea..f08c033 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -26,7 +26,7 @@ impl HeadlessContext { pub fn new(builder: HeadlessRendererBuilder) -> Result { let HeadlessRendererBuilder { dimensions, gl_version, gl_debug } = builder; init::new_window(Some(dimensions), "".to_string(), None, gl_version, gl_debug, false, true, - None) + None, None) .map(|w| HeadlessContext(w)) } @@ -70,9 +70,9 @@ impl Window { /// See the docs in the crate root file. pub fn new(builder: WindowBuilder) -> Result { let WindowBuilder { dimensions, title, monitor, gl_version, - gl_debug, vsync, visible, sharing } = builder; + gl_debug, vsync, visible, sharing, multisampling } = builder; init::new_window(dimensions, title, monitor, gl_version, gl_debug, vsync, - !visible, sharing.map(|w| w.window.context)) + !visible, sharing.map(|w| w.window.context), multisampling) } } -- cgit v1.2.3