aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/headless.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-07 14:14:10 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-07 14:14:10 +0100
commit6c5cca9d6a5f799b129ddd1b31316663c9da8e7e (patch)
treebb5ed569b0f5042c00e1c454452fdc9e108cd424 /src/x11/headless.rs
parent2320c2bc974fcc655553e678c457230f3e97de68 (diff)
parentc893e4faec212953174c12c68538d55929c90ad3 (diff)
downloadglutin-6c5cca9d6a5f799b129ddd1b31316663c9da8e7e.tar.gz
glutin-6c5cca9d6a5f799b129ddd1b31316663c9da8e7e.zip
Merge pull request #121 from tomaka/get-api
Add get_api() function
Diffstat (limited to 'src/x11/headless.rs')
-rw-r--r--src/x11/headless.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs
index e6479d6..78fb985 100644
--- a/src/x11/headless.rs
+++ b/src/x11/headless.rs
@@ -47,6 +47,11 @@ impl HeadlessContext {
})
}
}
+
+ /// See the docs in the crate root file.
+ pub fn get_api(&self) -> ::Api {
+ ::Api::OpenGl
+ }
}
impl Drop for HeadlessContext {