Merge pull request #90 from tomaka/rm-android

Remove android_main! call
This commit is contained in:
tomaka 2016-11-23 21:03:14 +01:00 committed by GitHub
commit 7bf9df848b
7 changed files with 0 additions and 49 deletions

View file

@ -1,14 +1,7 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
use winit::{Event, ElementState, MouseCursor};
#[cfg(target_os = "android")]
android_start!(main);
fn main() {
let window = winit::WindowBuilder::new().build().unwrap();
window.set_title("A fantastic window!");

View file

@ -1,14 +1,7 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
use std::io::{self, Write};
#[cfg(target_os = "android")]
android_start!(main);
fn main() {
// enumerating monitors
let monitor = {

View file

@ -1,14 +1,7 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
use winit::{Event, ElementState};
#[cfg(target_os = "android")]
android_start!(main);
fn main() {
let window = winit::WindowBuilder::new().build().unwrap();
window.set_title("winit - Cursor grabbing test");

View file

@ -1,12 +1,5 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
#[cfg(target_os = "android")]
android_start!(main);
fn main() {
let window = winit::WindowBuilder::new()
.with_min_dimensions(400, 200)

View file

@ -1,14 +1,7 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
use std::thread;
#[cfg(target_os = "android")]
android_start!(main);
fn main() {
let window1 = winit::WindowBuilder::new().build().unwrap();
let window2 = winit::WindowBuilder::new().build().unwrap();

View file

@ -1,12 +1,5 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
#[cfg(target_os = "android")]
android_start!(main);
fn resize_callback(width: u32, height: u32) {
println!("Window resized to {}x{}", width, height);
}

View file

@ -1,12 +1,5 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit;
#[cfg(target_os = "android")]
android_start!(main);
fn resize_callback(width: u32, height: u32) {
println!("Window resized to {}x{}", width, height);
}