Remove android_main! call

This commit is contained in:
Pierre Krieger 2016-11-23 19:33:44 +01:00
parent 79bed75d28
commit 289bb7bc9f
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; extern crate winit;
use winit::{Event, ElementState, MouseCursor}; use winit::{Event, ElementState, MouseCursor};
#[cfg(target_os = "android")]
android_start!(main);
fn main() { fn main() {
let window = winit::WindowBuilder::new().build().unwrap(); let window = winit::WindowBuilder::new().build().unwrap();
window.set_title("A fantastic window!"); 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; extern crate winit;
use std::io::{self, Write}; use std::io::{self, Write};
#[cfg(target_os = "android")]
android_start!(main);
fn main() { fn main() {
// enumerating monitors // enumerating monitors
let monitor = { let monitor = {

View file

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

View file

@ -1,14 +1,7 @@
#[cfg(target_os = "android")]
#[macro_use]
extern crate android_glue;
extern crate winit; extern crate winit;
use std::thread; use std::thread;
#[cfg(target_os = "android")]
android_start!(main);
fn main() { fn main() {
let window1 = winit::WindowBuilder::new().build().unwrap(); let window1 = winit::WindowBuilder::new().build().unwrap();
let window2 = 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; extern crate winit;
#[cfg(target_os = "android")]
android_start!(main);
fn resize_callback(width: u32, height: u32) { fn resize_callback(width: u32, height: u32) {
println!("Window resized to {}x{}", width, height); 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; extern crate winit;
#[cfg(target_os = "android")]
android_start!(main);
fn resize_callback(width: u32, height: u32) { fn resize_callback(width: u32, height: u32) {
println!("Window resized to {}x{}", width, height); println!("Window resized to {}x{}", width, height);
} }