aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-04 19:17:02 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-09 15:55:42 +0200
commite565bfeb1372b885f8cced6a42596b731cb382b2 (patch)
tree4a788e43172cd968c2a2cd1bd7d3102ea6937c80 /tests
parentcfb0cb70013772492c1930ced62f48aa6cb372ff (diff)
downloadglutin-e565bfeb1372b885f8cced6a42596b731cb382b2.tar.gz
glutin-e565bfeb1372b885f8cced6a42596b731cb382b2.zip
Implement headless rendering
Diffstat (limited to 'tests')
-rw-r--r--tests/headless.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/headless.rs b/tests/headless.rs
new file mode 100644
index 0000000..b9ae598
--- /dev/null
+++ b/tests/headless.rs
@@ -0,0 +1,13 @@
+#![feature(phase)]
+#![feature(tuple_indexing)]
+
+extern crate glutin;
+
+#[cfg(feature = "headless")]
+#[test]
+fn main() {
+ let window = glutin::HeadlessRendererBuilder::new(1024, 768).build().unwrap();
+
+ unsafe { window.make_current() };
+
+}