Home
last modified time | relevance | path

Searched refs:vertexSize (Results 1 – 25 of 28) sorted by relevance

12

/external/libgdx/gdx/src/com/badlogic/gdx/graphics/
DMesh.java353 return vertices.getAttributes().vertexSize; in getVertexSize()
556 final int vertexSize = vertices.getAttributes().vertexSize / 4; in calculateBoundingBox() local
563 idx += vertexSize; in calculateBoundingBox()
569 idx += vertexSize; in calculateBoundingBox()
575 idx += vertexSize; in calculateBoundingBox()
626 final int vertexSize = vertices.getAttributes().vertexSize / 4; in extendBoundingBox() local
633 final int idx = index.get(i) * vertexSize + posoff; in extendBoundingBox()
640 final int idx = i * vertexSize + posoff; in extendBoundingBox()
650 final int idx = index.get(i) * vertexSize + posoff; in extendBoundingBox()
657 final int idx = i * vertexSize + posoff; in extendBoundingBox()
[all …]
DVertexAttributes.java48 public final int vertexSize; field in VertexAttributes
64 vertexSize = calculateOffsets(); in VertexAttributes()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/
DUnweightedMeshSpawnShapeValue.java14 private int positionOffset, vertexSize, vertexCount, triangleCount; field in UnweightedMeshSpawnShapeValue
26 vertexSize = mesh.getVertexSize()/4; in setMesh()
36 vertices = new float[ vertexCount* vertexSize]; in setMesh()
44 int triangleIndex = MathUtils.random(vertexCount -3)*vertexSize; in spawnAux()
46 p2Offset = p1Offset + vertexSize, in spawnAux()
47 p3Offset = p2Offset + vertexSize; in spawnAux()
56 int p1Offset = indices[triangleIndex]*vertexSize + positionOffset, in spawnAux()
57 p2Offset = indices[triangleIndex+1]*vertexSize + positionOffset, in spawnAux()
58 p3Offset = indices[triangleIndex+2]*vertexSize + positionOffset; in spawnAux()
DWeightMeshSpawnShapeValue.java40 int vertexSize = (short)(attributes.vertexSize / 4), in calculateWeights() local
42 float[] vertices = new float[vertexCount*vertexSize]; in calculateWeights()
50 int p1Offset = indices[i]*vertexSize + positionOffset, in calculateWeights()
51 p2Offset = indices[i+1]*vertexSize + positionOffset, in calculateWeights()
52 p3Offset = indices[i+2]*vertexSize + positionOffset; in calculateWeights()
62 for(int i=0; i < vertexCount; i+=vertexSize){ in calculateWeights()
64 p2Offset = p1Offset + vertexSize, in calculateWeights()
65 p3Offset = p2Offset + vertexSize; in calculateWeights()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DVertexArray.java57 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices); in VertexArray()
75 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
79 return byteBuffer.capacity() / attributes.vertexSize; in getNumMaxVertices()
115 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
119 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
132 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
136 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
DVertexBufferObjectSubData.java71 byteBuffer = BufferUtils.newByteBuffer(this.attributes.vertexSize * numVertices); in VertexBufferObjectSubData()
96 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
101 return byteBuffer.capacity() / attributes.vertexSize; in getNumMaxVertices()
176 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
186 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bind()
DVertexBufferObject.java80 ByteBuffer data = BufferUtils.newUnsafeByteBuffer(attributes.vertexSize * numVertices); in VertexBufferObject()
100 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
105 return byteBuffer.capacity() / attributes.vertexSize; in getNumMaxVertices()
203 attributes.vertexSize, attribute.offset); in bind()
214 attributes.vertexSize, attribute.offset); in bind()
DImmediateModeRenderer20.java42 private final int vertexSize; field in ImmediateModeRenderer20
68 vertices = new float[maxVertices * (mesh.getVertexAttributes().vertexSize / 4)]; in ImmediateModeRenderer20()
69 vertexSize = mesh.getVertexAttributes().vertexSize / 4; in ImmediateModeRenderer20()
140 vertexIdx += vertexSize; in vertex()
DVertexBufferObjectWithVAO.java72 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices); in VertexBufferObjectWithVAO()
88 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
93 return byteBuffer.capacity() / attributes.vertexSize; in getNumMaxVertices()
191 …ribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, attribute.offse… in bindAttributes()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/glutils/
DVertexBufferObject.java78 buffer = BufferUtils.newFloatBuffer(this.attributes.vertexSize / 4 * numVertices); in VertexBufferObject()
91 return buffer.limit() / (attributes.vertexSize / 4); in getNumVertices()
96 return buffer.capacity() / (attributes.vertexSize / 4); in getNumMaxVertices()
162 …texAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize, in bind()
165 ….setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize, in bind()
177 …texAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize, in bind()
180 ….setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize, in bind()
DVertexBufferObjectWithVAO.java71 buffer = BufferUtils.newFloatBuffer(this.attributes.vertexSize / 4 * numVertices); in VertexBufferObjectWithVAO()
85 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
90 return buffer.capacity() * 4 / attributes.vertexSize; in getNumMaxVertices()
187 …ribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, attribute.offse… in bindAttributes()
/external/libgdx/extensions/gdx-bullet/jni/swig/softbody/
DbtSoftBody.i39 …btSoftBody(btSoftBodyWorldInfo *worldInfo, float *vertices, int vertexSize, int posOffset, int nor… in btSoftBody() argument
42 int size = vertexSize / sizeof(btScalar); in btSoftBody()
126 void getVertices(btScalar *buffer, int vertexCount, int vertexSize, int posOffset) { in getVertices() argument
128 int size = vertexSize / (sizeof(btScalar)); in getVertices()
138 …void getVertices(float *vertices, int vertexSize, int posOffset, short *indices, int indexOffset, … in getVertices() argument
140 int size = vertexSize / (sizeof(btScalar)); in getVertices()
151 …void getVertices(float *vertices, int vertexSize, int posOffset, int normalOffset, short *indices,… in getVertices() argument
154 int size = vertexSize / (sizeof(btScalar)); in getVertices()
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/strip/
DTriStrip.java297 public static void remapArrays(float[] vertexBuffer, int vertexSize, int[] indices) { in remapArrays() argument
298 int[] remapped = remapIndices(indices, vertexBuffer.length / vertexSize); in remapArrays()
301 int from = indices[i] * vertexSize; in remapArrays()
302 int to = remapped[i] * vertexSize; in remapArrays()
303 for (int j = 0; j < vertexSize; j++) { in remapArrays()
/external/skia/src/gpu/
DGrBatchFlushState.cpp22 void* GrBatchFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
24 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
DGrBufferAllocPool.cpp339 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, in makeSpace() argument
350 void* ptr = INHERITED::makeSpace(vertexSize * vertexCount, in makeSpace()
351 vertexSize, in makeSpace()
356 SkASSERT(0 == offset % vertexSize); in makeSpace()
357 *startVertex = static_cast<int>(offset / vertexSize); in makeSpace()
DGrBatchFlushState.h78 void* makeVertexSpace(size_t vertexSize, int vertexCount,
174 void* makeVertexSpace(size_t vertexSize, int vertexCount, in makeVertexSpace() argument
176 return this->state()->makeVertexSpace(vertexSize, vertexCount, buffer, startVertex); in makeVertexSpace()
DGrBufferAllocPool.h161 void* makeSpace(size_t vertexSize,
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DVBOWithVAOPerformanceTest.java332 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices); in OldVertexBufferObjectWithVAO()
347 return buffer.limit() * 4 / attributes.vertexSize; in getNumVertices()
352 return byteBuffer.capacity() / attributes.vertexSize; in getNumMaxVertices()
428 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bindAttributes()
439 …ute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, in bindAttributes()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DTriangleRaycastTest.java179 int vertexSize = mesh.getVertexSize() / 4; in tap() local
185 int j = currentVertexIndex * vertexSize + posOffset; in tap()
/external/replicaisland/src/com/replica/replicaisland/
DGrid.java346 final int vertexSize = mVertexBuffer.capacity() * mCoordinateSize; in generateHardwareBuffers() local
350 gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize, in generateHardwareBuffers()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/
DbtSoftBody.java4325 …Body(btSoftBodyWorldInfo worldInfo, java.nio.FloatBuffer vertices, int vertexSize, int posOffset, … in SwigConstructbtSoftBody() argument
4329 …y__SWIG_2(btSoftBodyWorldInfo.getCPtr(worldInfo), worldInfo, vertices, vertexSize, posOffset, norm… in SwigConstructbtSoftBody()
4332 …public btSoftBody(btSoftBodyWorldInfo worldInfo, java.nio.FloatBuffer vertices, int vertexSize, in… in btSoftBody() argument
4333 …this(btSoftBody.SwigConstructbtSoftBody(worldInfo, vertices, vertexSize, posOffset, normalOffset, … in btSoftBody()
4345 …public void getVertices(java.nio.FloatBuffer buffer, int vertexCount, int vertexSize, int posOffse… in getVertices() argument
4348 …SoftbodyJNI.btSoftBody_getVertices__SWIG_0(swigCPtr, this, buffer, vertexCount, vertexSize, posOff… in getVertices()
4352 …public void getVertices(java.nio.FloatBuffer vertices, int vertexSize, int posOffset, java.nio.Sho… in getVertices() argument
4357 …SoftbodyJNI.btSoftBody_getVertices__SWIG_1(swigCPtr, this, vertices, vertexSize, posOffset, indice… in getVertices()
4361 …public void getVertices(java.nio.FloatBuffer vertices, int vertexSize, int posOffset, int normalOf… in getVertices() argument
4366 …SoftbodyJNI.btSoftBody_getVertices__SWIG_2(swigCPtr, this, vertices, vertexSize, posOffset, normal… in getVertices()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/batches/
DPointSpriteParticleBatch.java40 protected static final int CPU_VERTEX_SIZE = (short)(CPU_ATTRIBUTES.vertexSize / 4),
DBillboardParticleBatch.java65 GPU_VERTEX_SIZE = GPU_ATTRIBUTES.vertexSize/4,
81 CPU_VERTEX_SIZE= CPU_ATTRIBUTES.vertexSize/4;
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DIntersector.java656 …c static boolean intersectRayTriangles (Ray ray, float[] vertices, short[] indices, int vertexSize, in intersectRayTriangles() argument
664 int i1 = indices[i] * vertexSize; in intersectRayTriangles()
665 int i2 = indices[i + 1] * vertexSize; in intersectRayTriangles()
666 int i3 = indices[i + 2] * vertexSize; in intersectRayTriangles()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DHeightField.java141 this.stride = attributes.vertexSize / 4; in HeightField()

12