(int vertexCursor)
| 963 | |
| 964 | Map<Integer, ArrayBuffer> b = target.buffers(); |
| 965 | Iterator<Map.Entry<Integer, ArrayBuffer>> m = b.entrySet() |
| 966 | .iterator(); |
| 967 | |
| 968 | while (m.hasNext()) { |
| 969 | Map.Entry<Integer, ArrayBuffer> n = m.next(); |
| 970 | if (n.getKey() == 0) continue; |
| 971 | |
| 972 | float[] z = aux.get(n.getKey()); |
| 973 | if (z == null) { |
| 974 | z = new float[n.getValue() |
| 975 | .getDimension()]; |
| 976 | } |
| 977 | ensureSize(n.getKey(), z.length, vertexCursor).put(z); |
| 978 | } |
| 979 | } |
| 980 | |
| 981 | public FloatBuffer ensureSize(int attribute, int dimension, int num) { |
| 982 | ArrayBuffer a = target.buffer(attribute, dimension); |
| 983 | if (a == null) { |
| 984 | a = target.arrayBufferFactory.newArrayBuffer((int) (num * GROWTH + 1), GL15.GL_ARRAY_BUFFER, attribute, |
| 985 | dimension, 0); |
no test coverage detected