/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package br.odb;

// Wrapper for native library

import android.content.res.AssetManager;
import android.graphics.Bitmap;

public class GL2JNILib {

    public static AssetManager assetManager;

    static {
        System.loadLibrary("NdkGlue");
    }

    /**
     * @param width  the current view width
     * @param height the current view height
     */
    public static native void init(int width, int height);

    public static native void step();

    public static native void tick();

    public static native void onDestroy();

    public static native void onCreate(AssetManager assetManager);

    public static native void setTextures(Bitmap[] bitmaps);

    public static native void setSnapshot(int[][] map);

    public static native void setCameraPosition(float x, float y);
}

@@ -762,20 +762,17 @@
 ILib %7B%0A%0A
-    
+%09
 public s
@@ -805,20 +805,17 @@
 nager;%0A%0A
-    
+%09
 static %7B
@@ -819,16 +819,10 @@
 c %7B%0A
-        
+%09%09
 Syst
@@ -852,27 +852,18 @@
 %22);%0A
-    %7D%0A%0A    /**%0A    
+%09%7D%0A%0A%09/**%0A%09
  * @
@@ -898,20 +898,17 @@
 w width%0A
-    
+%09
  * @para
@@ -944,20 +944,14 @@
 ght%0A
-     */%0A    
+%09 */%0A%09
 publ
@@ -998,28 +998,25 @@
 t height);%0A%0A
-    
+%09
 public stati
@@ -1034,28 +1034,25 @@
 id step();%0A%0A
-    
+%09
 public stati
@@ -1070,28 +1070,25 @@
 id tick();%0A%0A
-    
+%09
 public stati
@@ -1111,28 +1111,25 @@
 Destroy();%0A%0A
-    
+%09
 public stati
@@ -1176,28 +1176,25 @@
 tManager);%0A%0A
-    
+%09
 public stati
@@ -1235,28 +1235,25 @@
  bitmaps);%0A%0A
-    
+%09
 public stati
@@ -1293,20 +1293,17 @@
  map);%0A%0A
-    
+%09
 public s

Reformat GL2JNILib