Home
last modified time | relevance | path

Searched refs:ShortBuffer (Results 1 – 25 of 75) sorted by relevance

123

/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/nio/
DShortBuffer.java31 public abstract class ShortBuffer extends Buffer implements Comparable<ShortBuffer> { class
39 public static ShortBuffer allocate (int capacity) { in allocate()
54 public static ShortBuffer wrap (short[] array) { in wrap()
69 public static ShortBuffer wrap (short[] array, int start, int len) { in wrap()
77 ShortBuffer buf = BufferFactory.newShortBuffer(array); in wrap()
87 ShortBuffer (int capacity) { in ShortBuffer() method in ShortBuffer
126 public abstract ShortBuffer asReadOnlyBuffer (); in asReadOnlyBuffer()
137 public abstract ShortBuffer compact (); in compact()
146 public int compareTo (ShortBuffer otherBuffer) { in compareTo()
176 public abstract ShortBuffer duplicate (); in duplicate()
[all …]
DReadOnlyShortArrayBuffer.java42 public ShortBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
46 public ShortBuffer compact () { in compact()
50 public ShortBuffer duplicate () { in duplicate()
70 public ShortBuffer put (ShortBuffer buf) { in put()
74 public ShortBuffer put (short c) { in put()
78 public ShortBuffer put (int index, short c) { in put()
82 public final ShortBuffer put (short[] src, int off, int len) { in put()
86 public ShortBuffer slice () { in slice()
DShortToByteBufferAdapter.java32 final class ShortToByteBufferAdapter extends ShortBuffer implements ByteBufferWrapper {
35 static ShortBuffer wrap (ByteBuffer byteBuffer) { in wrap()
96 public ShortBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
105 public ShortBuffer compact () { in compact()
120 public ShortBuffer duplicate () { in duplicate()
175 public ShortBuffer put (short c) { in put()
184 public ShortBuffer put (int index, short c) { in put()
193 public ShortBuffer slice () { in slice()
196 ShortBuffer result = new ShortToByteBufferAdapter(byteBuffer.slice()); in slice()
DDirectReadOnlyShortBufferAdapter.java33 final class DirectReadOnlyShortBufferAdapter extends ShortBuffer implements HasArrayBufferView {
35 static ShortBuffer wrap (DirectByteBuffer byteBuffer) { in wrap()
50 public ShortBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
59 public ShortBuffer compact () { in compact()
64 public ShortBuffer duplicate () { in duplicate()
119 public ShortBuffer put (short c) { in put()
124 public ShortBuffer put (int index, short c) { in put()
129 public ShortBuffer slice () { in slice()
132 ShortBuffer result = new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.slice()); in slice()
DDirectReadWriteShortBufferAdapter.java33 final class DirectReadWriteShortBufferAdapter extends ShortBuffer implements HasArrayBufferView {
36 static ShortBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { in wrap()
52 public ShortBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
61 public ShortBuffer compact () { in compact()
73 public ShortBuffer duplicate () { in duplicate()
129 public ShortBuffer put (short c) { in put()
138 public ShortBuffer put (int index, short c) { in put()
147 public ShortBuffer slice () { in slice()
150ShortBuffer result = new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.s… in slice()
DReadWriteShortArrayBuffer.java50 public ShortBuffer asReadOnlyBuffer () { in asReadOnlyBuffer()
54 public ShortBuffer compact () { in compact()
62 public ShortBuffer duplicate () { in duplicate()
82 public ShortBuffer put (short c) { in put()
90 public ShortBuffer put (int index, short c) { in put()
98 public ShortBuffer put (short[] src, int off, int len) { in put()
111 public ShortBuffer slice () { in slice()
DShortArrayBuffer.java28 abstract class ShortArrayBuffer extends ShortBuffer {
62 public final ShortBuffer get (short[] dest, int off, int len) { in get()
DBufferFactory.java143 public static ShortBuffer newShortBuffer (int capacity) { in newShortBuffer()
151 public static ShortBuffer newShortBuffer (short array[]) { in newShortBuffer()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DVertexBuffer.java417 } else if( data instanceof ShortBuffer ) { in getDataReadOnly()
418 result = ((ShortBuffer)data).asReadOnlyBuffer(); in getDataReadOnly()
638 ShortBuffer sbuf = (ShortBuffer) data; in compact()
640 ShortBuffer snewBuf = BufferUtils.createShortBuffer(total); in compact()
697 ShortBuffer sin = (ShortBuffer) data; in setElementComponent()
741 ShortBuffer sin = (ShortBuffer) srcData; in getElementComponent()
814 ShortBuffer sin = (ShortBuffer) srcData; in copyElements()
815 ShortBuffer sout = (ShortBuffer) outVb.data; in copyElements()
975 oc.write((ShortBuffer) roData, dataName, null); in write()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DIndexArray.java20 import java.nio.ShortBuffer;
25 final ShortBuffer buffer;
77 public void setIndices (ShortBuffer indices) { in setIndices()
102 public ShortBuffer getBuffer () { in getBuffer()
DIndexData.java19 import java.nio.ShortBuffer;
51 public void setIndices (ShortBuffer indices); in setIndices()
66 public ShortBuffer getBuffer (); in getBuffer()
DIndexBufferObject.java20 import java.nio.ShortBuffer;
48 final ShortBuffer buffer;
123 public void setIndices (ShortBuffer indices) { in setIndices()
160 public ShortBuffer getBuffer () { in getBuffer()
DIndexBufferObjectSubData.java20 import java.nio.ShortBuffer;
48 final ShortBuffer buffer;
129 public void setIndices (ShortBuffer indices) { in setIndices()
167 public ShortBuffer getBuffer () { in getBuffer()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/
DIndexShortBuffer.java36 import java.nio.ShortBuffer;
45 private ShortBuffer buf;
47 public IndexShortBuffer(ShortBuffer buffer) { in IndexShortBuffer()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DBufferUtils.java91 } else if (buf instanceof ShortBuffer) { in clone()
92 return clone((ShortBuffer) buf); in clone()
986 public static ShortBuffer createShortBuffer(int size) { in createShortBuffer()
987ShortBuffer buf = ByteBuffer.allocateDirect(2 * size).order(ByteOrder.nativeOrder()).asShortBuffer… in createShortBuffer()
1004 public static ShortBuffer createShortBuffer(ShortBuffer buf, int size) { in createShortBuffer()
1014 public static ShortBuffer createShortBuffer(short... data) { in createShortBuffer()
1018 ShortBuffer buff = createShortBuffer(data.length); in createShortBuffer()
1035 public static ShortBuffer clone(ShortBuffer buf) { in clone()
1041 ShortBuffer copy; in clone()
1045 copy = ShortBuffer.allocate(buf.limit()); in clone()
[all …]
/external/libgdx/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
DbtIndexedMesh.java20 import java.nio.ShortBuffer;
95 final ShortBuffer indices, int indexOffset, int indexCount) { in obtain()
141 final ShortBuffer indices, int indexOffset, int indexCount) { in btIndexedMesh()
194 final ShortBuffer indices, int indexOffset, int indexCount) { in set()
202 final ShortBuffer indices, int indexOffset, int indexCount) { in set()
282 public void setTriangleIndexBase(java.nio.ShortBuffer data) { in setTriangleIndexBase()
303 public void setIndices(java.nio.ShortBuffer indices, int indexOffset, int indexCount) { in setIndices()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/glutils/
DIndexBufferObject.java19 import java.nio.ShortBuffer;
47 ShortBuffer buffer;
111 public void setIndices (ShortBuffer indices) { in setIndices()
143 public ShortBuffer getBuffer () { in getBuffer()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DBufferUtils.java27 import java.nio.ShortBuffer;
89 ShortBuffer buffer = null; in copy()
92 else if (dst instanceof ShortBuffer) buffer = (ShortBuffer)dst; in copy()
322 else if ((srcIsByte || src instanceof ShortBuffer) && (dstIsByte || dst instanceof ShortBuffer)) in copy()
323 …ByteBuffer)dst).asShortBuffer() : (ShortBuffer)dst).put((srcIsByte ? ((ByteBuffer)src).asShortBuff… in copy()
499 public static ShortBuffer newShortBuffer (int numShorts) { in newShortBuffer()
505 return ShortBuffer.wrap(new short[numShorts]); in newShortBuffer()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DSkeletonWire.java45 import java.nio.ShortBuffer;
59 private void writeConnections(ShortBuffer indexBuf, Bone bone){ in writeConnections()
83 ShortBuffer sib = BufferUtils.createShortBuffer(numConnections * 2); in SkeletonWire()
DGrid.java40 import java.nio.ShortBuffer;
61 ShortBuffer sib = BufferUtils.createShortBuffer(2 * lineCount); in Grid()
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
DFloatToFixed.java260 ShortBuffer sb = null; in convertTexCoords2D()
263 if (output instanceof ShortBuffer) in convertTexCoords2D()
264 sb = (ShortBuffer) output; in convertTexCoords2D()
292 ShortBuffer sb = null; in convertPositions()
296 if (output instanceof ShortBuffer){ in convertPositions()
297 sb = (ShortBuffer) output; in convertPositions()
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
DLwjgl3GL20.java25 import java.nio.ShortBuffer;
123 else if (data instanceof ShortBuffer) // in glBufferData()
124 GL15.glBufferData(target, (ShortBuffer)data, usage); in glBufferData()
138 else if (data instanceof ShortBuffer) // in glBufferSubData()
139 GL15.glBufferSubData(target, offset, (ShortBuffer)data); in glBufferSubData()
276 if (indices instanceof ShortBuffer && type == com.badlogic.gdx.graphics.GL20.GL_UNSIGNED_SHORT) in glDrawElements()
277 GL11.glDrawElements(mode, (ShortBuffer)indices); in glDrawElements()
530 else if (pixels instanceof ShortBuffer) in glReadPixels()
531 GL11.glReadPixels(x, y, width, height, format, type, (ShortBuffer)pixels); in glReadPixels()
595 else if (pixels instanceof ShortBuffer) in glTexImage2D()
[all …]
/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
DLwjglGL20.java25 import java.nio.ShortBuffer;
127 else if (data instanceof ShortBuffer) // in glBufferData()
128 GL15.glBufferData(target, (ShortBuffer)data, usage); in glBufferData()
142 else if (data instanceof ShortBuffer) // in glBufferSubData()
143 GL15.glBufferSubData(target, offset, (ShortBuffer)data); in glBufferSubData()
280 if (indices instanceof ShortBuffer && type == com.badlogic.gdx.graphics.GL20.GL_UNSIGNED_SHORT) in glDrawElements()
281 GL11.glDrawElements(mode, (ShortBuffer)indices); in glDrawElements()
536 else if (pixels instanceof ShortBuffer) in glReadPixels()
537 GL11.glReadPixels(x, y, width, height, format, type, (ShortBuffer)pixels); in glReadPixels()
601 else if (pixels instanceof ShortBuffer) in glTexImage2D()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/
DDebug.java23 import java.nio.ShortBuffer;
48 public final static void print8x8(ShortBuffer output) { in print8x8()
/external/jmonkeyengine/engine/src/core/com/jme3/export/
DInputCapsule.java40 import java.nio.ShortBuffer;
153 public ShortBuffer readShortBuffer(String name, ShortBuffer defVal) throws IOException; in readShortBuffer()

123