Here you can find the source of cubeTextureFace(float x0, float y0, float x1, float y1)
public static float[] cubeTextureFace(float x0, float y0, float x1, float y1)
//package com.java2s; //License from project: Open Source License public class Main { public static float[] cubeTextureFace(float x0, float y0, float x1, float y1) { return new float[] { x0, y0, x1, y0, x1, y1, x0, y1 }; }// w w w .ja v a2s. c o m public static float[] cubeTextureFace(float[] coords) { float x0 = coords[0]; float y0 = coords[1]; float x1 = coords[2]; float y1 = coords[3]; return new float[] { x0, y0, x1, y0, x1, y1, x0, y1 }; } }