/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
UnweightedMeshSpawnShapeValue.java | 14 private int positionOffset, vertexSize, vertexCount, triangleCount; 26 vertexSize = mesh.getVertexSize()/4; 36 vertices = new float[ vertexCount* vertexSize]; 44 int triangleIndex = MathUtils.random(vertexCount -3)*vertexSize; 46 p2Offset = p1Offset + vertexSize, 47 p3Offset = p2Offset + vertexSize; 56 int p1Offset = indices[triangleIndex]*vertexSize + positionOffset, 57 p2Offset = indices[triangleIndex+1]*vertexSize + positionOffset, 58 p3Offset = indices[triangleIndex+2]*vertexSize + positionOffset;
|
WeightMeshSpawnShapeValue.java | 40 int vertexSize = (short)(attributes.vertexSize / 4), 42 float[] vertices = new float[vertexCount*vertexSize]; 50 int p1Offset = indices[i]*vertexSize + positionOffset, 51 p2Offset = indices[i+1]*vertexSize + positionOffset, 52 p3Offset = indices[i+2]*vertexSize + positionOffset; 62 for(int i=0; i < vertexCount; i+=vertexSize){ 64 p2Offset = p1Offset + vertexSize, 65 p3Offset = p2Offset + vertexSize;
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
Mesh.cpp | 23 Mesh::Mesh(Primitive primitive, size_t vertexCount, size_t vertexSize, size_t texCoordSize) 24 : mVertexCount(vertexCount), mVertexSize(vertexSize), mTexCoordsSize(texCoordSize), 34 size_t stride = vertexSize + texCoordSize; 37 // either vertexSize or texCoordSize, it must have overflowed. remainder 39 if ((stride < vertexSize) || (remainder != stride)) { 40 ALOGE("Overflow in Mesh(..., %zu, %zu, %zu)", vertexCount, vertexSize,
|
Mesh.h | 32 Mesh(Primitive primitive, size_t vertexCount, size_t vertexSize, size_t texCoordsSize = 0);
|
/external/skia/src/gpu/ |
GrBatchFlushState.cpp | 22 void* GrBatchFlushState::makeVertexSpace(size_t vertexSize, int vertexCount, 24 return fVertexPool.makeSpace(vertexSize, vertexCount, buffer, startVertex);
|
GrBatchFlushState.h | 78 void* makeVertexSpace(size_t vertexSize, int vertexCount, 174 void* makeVertexSpace(size_t vertexSize, int vertexCount, 176 return this->state()->makeVertexSpace(vertexSize, vertexCount, buffer, startVertex);
|
GrBufferAllocPool.h | 153 * @param vertexSize specifies size of a vertex to allocate space for 161 void* makeSpace(size_t vertexSize,
|
GrBufferAllocPool.cpp | 339 void* GrVertexBufferAllocPool::makeSpace(size_t vertexSize, 350 void* ptr = INHERITED::makeSpace(vertexSize * vertexCount, 351 vertexSize, 356 SkASSERT(0 == offset % vertexSize); 357 *startVertex = static_cast<int>(offset / vertexSize);
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
Mesh.java | 248 // TODO: Perhaps this method should be vertexSize aware??
353 return vertices.getAttributes().vertexSize;
556 final int vertexSize = vertices.getAttributes().vertexSize / 4;
563 idx += vertexSize;
569 idx += vertexSize;
575 idx += vertexSize;
626 final int vertexSize = vertices.getAttributes().vertexSize / 4;
633 final int idx = index.get(i) * vertexSize + posoff; [all...] |
VertexAttributes.java | 48 public final int vertexSize;
64 vertexSize = calculateOffsets();
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/ |
VertexArray.java | 57 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices);
75 return buffer.limit() * 4 / attributes.vertexSize;
79 return byteBuffer.capacity() / attributes.vertexSize;
115 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
119 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
132 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
136 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
|
ImmediateModeRenderer20.java | 42 private final int vertexSize;
68 vertices = new float[maxVertices * (mesh.getVertexAttributes().vertexSize / 4)];
69 vertexSize = mesh.getVertexAttributes().vertexSize / 4;
140 vertexIdx += vertexSize;
|
VertexBufferObject.java | 80 ByteBuffer data = BufferUtils.newUnsafeByteBuffer(attributes.vertexSize * numVertices);
100 return buffer.limit() * 4 / attributes.vertexSize;
105 return byteBuffer.capacity() / attributes.vertexSize;
203 attributes.vertexSize, attribute.offset);
214 attributes.vertexSize, attribute.offset);
|
VertexBufferObjectSubData.java | 71 byteBuffer = BufferUtils.newByteBuffer(this.attributes.vertexSize * numVertices);
96 return buffer.limit() * 4 / attributes.vertexSize;
101 return byteBuffer.capacity() / attributes.vertexSize;
176 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
186 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
|
VertexBufferObjectWithVAO.java | 72 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices); 88 return buffer.limit() * 4 / attributes.vertexSize; 93 return byteBuffer.capacity() / attributes.vertexSize; 191 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, attribute.offset);
|
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/glutils/ |
VertexBufferObject.java | 78 buffer = BufferUtils.newFloatBuffer(this.attributes.vertexSize / 4 * numVertices);
91 return buffer.limit() / (attributes.vertexSize / 4);
96 return buffer.capacity() / (attributes.vertexSize / 4);
162 shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize,
165 shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize,
177 shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_UNSIGNED_BYTE, true, attributes.vertexSize,
180 shader.setVertexAttribute(location, attribute.numComponents, GL20.GL_FLOAT, false, attributes.vertexSize,
|
VertexBufferObjectWithVAO.java | 71 buffer = BufferUtils.newFloatBuffer(this.attributes.vertexSize / 4 * numVertices); 85 return buffer.limit() * 4 / attributes.vertexSize; 90 return buffer.capacity() * 4 / attributes.vertexSize; 187 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, attribute.offset);
|
/external/libgdx/extensions/gdx-bullet/jni/swig/softbody/ |
btSoftBody.i | 34 * vertexSize: the size in bytes of one vertex 39 btSoftBody(btSoftBodyWorldInfo *worldInfo, float *vertices, int vertexSize, int posOffset, int normalOffset, short *indices, int indexOffset, int numVertices, short *indexMap, int indexMapOffset) { 42 int size = vertexSize / sizeof(btScalar); 121 * buffer: must be at least vertexCount*vertexSize big 123 * vertexSize: the size in bytes of one vertex (must be dividable by sizeof(btScalar)) 126 void getVertices(btScalar *buffer, int vertexCount, int vertexSize, int posOffset) { 128 int size = vertexSize / (sizeof(btScalar)); 138 void getVertices(float *vertices, int vertexSize, int posOffset, short *indices, int indexOffset, int numVertices, short *indexMap, int indexMapOffset) { 140 int size = vertexSize / (sizeof(btScalar)); 151 void getVertices(float *vertices, int vertexSize, int posOffset, int normalOffset, short *indices, int indexOffset, int numVertices, short *indexMa (…) [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
TriangleRaycastTest.java | 179 int vertexSize = mesh.getVertexSize() / 4; 185 int j = currentVertexIndex * vertexSize + posOffset;
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
VBOWithVAOPerformanceTest.java | 332 byteBuffer = BufferUtils.newUnsafeByteBuffer(this.attributes.vertexSize * numVertices); 347 return buffer.limit() * 4 / attributes.vertexSize; 352 return byteBuffer.capacity() / attributes.vertexSize; 428 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize, 439 shader.setVertexAttribute(location, attribute.numComponents, attribute.type, attribute.normalized, attributes.vertexSize,
|
/external/replicaisland/src/com/replica/replicaisland/ |
Grid.java | 346 final int vertexSize = mVertexBuffer.capacity() * mCoordinateSize; 350 gl11.glBufferData(GL11.GL_ARRAY_BUFFER, vertexSize,
|
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/batches/ |
PointSpriteParticleBatch.java | 40 protected static final int CPU_VERTEX_SIZE = (short)(CPU_ATTRIBUTES.vertexSize / 4),
|
BillboardParticleBatch.java | 65 GPU_VERTEX_SIZE = GPU_ATTRIBUTES.vertexSize/4, 74 GPU_EXT_VERTEX_SIZE = GPU_EXT_ATTRIBUTES.vertexSize/4, 81 CPU_VERTEX_SIZE= CPU_ATTRIBUTES.vertexSize/4;
|
/external/libgdx/extensions/gdx-bullet/jni/swig-src/softbody/com/badlogic/gdx/physics/bullet/softbody/ |
btSoftBody.java | [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
Intersector.java | 653 * @param vertexSize the size of a vertex in floats 656 public static boolean intersectRayTriangles (Ray ray, float[] vertices, short[] indices, int vertexSize, 664 int i1 = indices[i] * vertexSize; 665 int i2 = indices[i + 1] * vertexSize; 666 int i3 = indices[i + 2] * vertexSize; [all...] |