Add basic support for Android
This commit is contained in:
parent
d870fa7ffa
commit
0bb82e8467
11 changed files with 505 additions and 1 deletions
|
|
@ -1,9 +1,18 @@
|
|||
#![feature(phase)]
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[phase(plugin, link)]
|
||||
extern crate android_glue;
|
||||
|
||||
extern crate gl;
|
||||
extern crate gl_init;
|
||||
extern crate libc;
|
||||
|
||||
use std::io::stdio::stdin;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
android_start!(main)
|
||||
|
||||
fn main() {
|
||||
// enumerating monitors
|
||||
let monitor = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,16 @@
|
|||
#![feature(phase)]
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[phase(plugin, link)]
|
||||
extern crate android_glue;
|
||||
|
||||
extern crate gl;
|
||||
extern crate gl_init;
|
||||
extern crate libc;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
android_start!(main)
|
||||
|
||||
fn main() {
|
||||
let window1 = gl_init::Window::new().unwrap();
|
||||
let window2 = gl_init::Window::new().unwrap();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,16 @@
|
|||
#![feature(phase)]
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[phase(plugin, link)]
|
||||
extern crate android_glue;
|
||||
|
||||
extern crate gl;
|
||||
extern crate gl_init;
|
||||
extern crate libc;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
android_start!(main)
|
||||
|
||||
fn main() {
|
||||
let window = gl_init::Window::new().unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue