HomeSort by relevance Sort by last modified time
    Searched refs:numFloats (Results 1 - 5 of 5) sorted by null

  /external/libgdx/gdx/src/com/badlogic/gdx/math/
Polygon.java 179 final int numFloats = vertices.length;
180 for (int i = 2; i < numFloats; i += 2) {
200 final int numFloats = vertices.length;
203 for (int i = 0; i < numFloats; i += 2) {
206 float x2 = vertices[(i + 2) % numFloats];
207 float y2 = vertices[(i + 3) % numFloats];
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
BufferUtils.java 37 /** Copies numFloats floats from src starting at offset to dst. Dst is assumed to be a direct {@link Buffer}. The method will
39 * buffer. After the copying process the position of the buffer is set to 0 and its limit is set to numFloats * 4 if it is a
40 * ByteBuffer and numFloats if it is a FloatBuffer. In case the Buffer is neither a ByteBuffer nor a FloatBuffer the limit is
45 * @param numFloats the number of floats to copy
47 public static void copy (float[] src, Buffer dst, int numFloats, int offset) {
52 floatBuffer.put(src, offset, numFloats);
55 dst.limit(numFloats << 2);
57 dst.limit(numFloats);
469 public static FloatBuffer newFloatBuffer (int numFloats) {
471 ByteBuffer buffer = ByteBuffer.allocateDirect(numFloats * 4);
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/utils/
BufferUtils.java 39 /** Copies numFloats floats from src starting at offset to dst. Dst is assumed to be a direct {@link Buffer}. The method will
41 * buffer. After the copying process the position of the buffer is set to 0 and its limit is set to numFloats * 4 if it is a
42 * ByteBuffer and numFloats if it is a FloatBuffer. In case the Buffer is neither a ByteBuffer nor a FloatBuffer the limit is
47 * @param numFloats the number of floats to copy
49 public static void copy (float[] src, Buffer dst, int numFloats, int offset) {
51 dst.limit(numFloats << 2);
52 else if (dst instanceof FloatBuffer) dst.limit(numFloats);
54 copyJni(src, dst, numFloats, offset);
454 public static FloatBuffer newFloatBuffer (int numFloats) {
455 ByteBuffer buffer = ByteBuffer.allocateDirect(numFloats * 4);
    [all...]
  /external/libgdx/gdx/jni/
com.badlogic.gdx.utils.BufferUtils.cpp 58 JNIEXPORT void JNICALL Java_com_badlogic_gdx_utils_BufferUtils_copyJni___3FLjava_nio_Buffer_2II(JNIEnv* env, jclass clazz, jfloatArray obj_src, jobject obj_dst, jint numFloats, jint offset) {
65 memcpy(dst, src + offset, numFloats << 2 );
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
MeshBuilder.java 743 int numFloats = mesh.getNumVertices() * stride;
745 tmpVertices.ensureCapacity(numFloats);
746 tmpVertices.size = numFloats;
    [all...]

Completed in 841 milliseconds