aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx/mod.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 17:54:04 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-08-07 17:54:04 +0200
commit76ebf39bcdec733bd11950ea8478c665878460a6 (patch)
treed758748fbbcb78dd9a36d347ff2f1b9b2799eb2a /src/osx/mod.rs
parent5d997b618f1a16efb107028960b20e41a6b1bcce (diff)
parentd2bd19bc21889e78c18bf64a570677e6330bbad0 (diff)
downloadglutin-76ebf39bcdec733bd11950ea8478c665878460a6.tar.gz
glutin-76ebf39bcdec733bd11950ea8478c665878460a6.zip
Merge branch 'master' of https://github.com/tomaka/gl-init-rs
Diffstat (limited to 'src/osx/mod.rs')
-rw-r--r--src/osx/mod.rs79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
new file mode 100644
index 0000000..f846cf4
--- /dev/null
+++ b/src/osx/mod.rs
@@ -0,0 +1,79 @@
+//! Dummy implementation for OS/X to make gl-init-rs compile on this platform
+
+use {Event, WindowBuilder};
+
+pub struct Window;
+
+pub struct MonitorID;
+
+pub fn get_available_monitors() -> Vec<MonitorID> {
+ unimplemented!()
+}
+
+pub fn get_primary_monitor() -> MonitorID {
+ unimplemented!()
+}
+
+impl MonitorID {
+ pub fn get_name(&self) -> Option<String> {
+ unimplemented!()
+ }
+
+ pub fn get_dimensions(&self) -> (uint, uint) {
+ unimplemented!()
+ }
+}
+
+impl Window {
+ pub fn new(_builder: WindowBuilder) -> Result<Window, String> {
+ unimplemented!()
+ }
+
+ pub fn is_closed(&self) -> bool {
+ unimplemented!()
+ }
+
+ pub fn set_title(&self, _title: &str) {
+ unimplemented!()
+ }
+
+ pub fn get_position(&self) -> Option<(int, int)> {
+ unimplemented!()
+ }
+
+ pub fn set_position(&self, _x: uint, _y: uint) {
+ unimplemented!()
+ }
+
+ pub fn get_inner_size(&self) -> Option<(uint, uint)> {
+ unimplemented!()
+ }
+
+ pub fn get_outer_size(&self) -> Option<(uint, uint)> {
+ unimplemented!()
+ }
+
+ pub fn set_inner_size(&self, _x: uint, _y: uint) {
+ unimplemented!()
+ }
+
+ pub fn poll_events(&self) -> Vec<Event> {
+ unimplemented!()
+ }
+
+ pub fn wait_events(&self) -> Vec<Event> {
+ unimplemented!()
+ }
+
+ pub unsafe fn make_current(&self) {
+ unimplemented!()
+ }
+
+ pub fn get_proc_address(&self, _addr: &str) -> *const () {
+ unimplemented!()
+ }
+
+ pub fn swap_buffers(&self) {
+ unimplemented!()
+ }
+}