Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.nio.FloatBuffer;
import android.os.Build;

public class Main {
    /**
     * Copy with JNI for devices prior GINGERBREAD(api 9), put for newer versions(HTC Sensation has faster put(float[]) )  
     */
    public static void copyFloats(float[] src, int srcOffset, FloatBuffer dst, int numElements) {
        if (Build.VERSION.SDK_INT >= 9) {
            dst.put(src, srcOffset, numElements);
        } else {
            //com.badlogic.gdx.utils.BufferUtils.copy(src, srcOffset, dst, numElements);

        }
    }
}