diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-28 15:08:41 +0100 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-12-31 07:34:26 +0100 |
commit | b9710f05a9d1e7fd10536b604074baf748fb5bd7 (patch) | |
tree | d3f8c282bd302589b1e021064d2182371245ad3c /src/android | |
parent | fb42768a14228eba456cc8957820c14c105b1647 (diff) | |
download | glutin-b9710f05a9d1e7fd10536b604074baf748fb5bd7.tar.gz glutin-b9710f05a9d1e7fd10536b604074baf748fb5bd7.zip |
Unify WindowBuilder and HeadlessRendererBuilder for easier implementations
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs index 111d4b4..b8514f1 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -7,8 +7,7 @@ use events::ElementState::{Pressed, Released}; use events::Event::{MouseInput, MouseMoved}; use events::MouseButton::LeftMouseButton; -#[cfg(feature = "headless")] -use HeadlessRendererBuilder; +use BuilderAttribs; pub struct Window { display: ffi::egl::types::EGLDisplay, @@ -45,7 +44,7 @@ pub struct HeadlessContext(int); #[cfg(feature = "headless")] impl HeadlessContext { /// See the docs in the crate root file. - pub fn new(_builder: HeadlessRendererBuilder) -> Result<HeadlessContext, CreationError> { + pub fn new(_builder: BuilderAttribs) -> Result<HeadlessContext, CreationError> { unimplemented!() } @@ -66,7 +65,7 @@ unsafe impl Send for HeadlessContext {} unsafe impl Sync for HeadlessContext {} impl Window { - pub fn new(builder: WindowBuilder) -> Result<Window, CreationError> { + pub fn new(builder: BuilderAttribs) -> Result<Window, CreationError> { use std::{mem, ptr}; if builder.sharing.is_some() { |