Search
lxdream.org :: lxdream/android/src/org/lxdream/Dreamcast.java
lxdream 0.9.1
released Jun 29
Download Now
filename android/src/org/lxdream/Dreamcast.java
changeset 1275:83b15705cdde
prev1245:01e0020adf88
next1278:2f0de47738d0
author nkeynes
date Tue Mar 20 08:29:38 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change More android WIP
- Implement onPause/onResume (although resume is not actually working yet)
- Implement BGRA => RGBA texture conversion (BGRA doesn't seem to work on the TFP)

Boot swirl is now displayed, albeit depth buffering seems to be broken.
view annotate diff log raw
     1 /**
     2  * $Id$
     3  * 
     4  * Main Lxdream activity 
     5  *
     6  * Copyright (c) 2011 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 package org.lxdream;
    21 public class Dreamcast {
    23      static {
    24          System.loadLibrary("lxdream");
    25      }
    27      /* Core emulation */
    28      public static native void init( String appHome );
    29      public static native void run();
    30      public static native void stop();
    31      public static native void reset();
    32      public static native void toggleRun();
    33      public static native boolean isRunnable();
    34      public static native boolean isRunning();
    36      public static native void onAppPause();
    37      public static native void onAppResume();
    39      /* GD-Rom */
    40      public static native boolean mount( String filename );
    41      public static native void unmount();
    44      /* Save state management */
    45 /*     public static native boolean saveState( String filename );
    46      public static native boolean loadState( String filename );
    47      public static native boolean quickSave();
    48      public static native boolean quickLoad();
    49      public static native void setQuickState(int state);
    50   */   
    51 }
.