HomeSort by relevance Sort by last modified time
    Searched defs:meshPart (Results 1 - 13 of 13) sorted by null

  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
SoftMeshTest.java 24 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
76 MeshPart meshPart = model.nodes.get(0).parts.get(0).meshPart;
78 meshPart.mesh.scale(6, 6, 6);
80 indexMap = BufferUtils.newShortBuffer(meshPart.size);
82 positionOffset = meshPart.mesh.getVertexAttribute(Usage.Position).offset;
83 normalOffset = meshPart.mesh.getVertexAttribute(Usage.Normal).offset;
85 softBody = new btSoftBody(worldInfo, meshPart.mesh.getVerticesBuffer(), meshPart.mesh.getVertexSize(), positionOffset
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/
Renderable.java 22 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
34 * {@link MeshPart} class. The meshPartOffset is used to specify the offset within the mesh and the meshPartSize is used to
69 /** The {@link MeshPart} that contains the shape to render **/
70 public final MeshPart meshPart = new MeshPart();
93 meshPart.set(renderable.meshPart);
Model.java 29 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
59 * of a {@link MeshPart} and {@link Material}. Mesh parts reference subsets of vertices in one of the meshes of the model.
82 public final Array<MeshPart> meshParts = new Array();
187 MeshPart meshPart = null;
191 for (MeshPart part : meshParts) {
193 meshPart = part;
208 if (meshPart == null || meshMaterial == null) throw new GdxRuntimeException("Invalid node: " + node.id);
210 if (meshPart != null && meshMaterial != null) {
212 nodePart.meshPart = meshPart;
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/model/
NodePart.java 26 /** A combination of {@link MeshPart} and {@link Material}, used to represent a {@link Node}'s graphical properties. A NodePart is
30 /** The MeshPart (shape) to render. Must not be null. */
31 public MeshPart meshPart;
32 /** The Material used to render the {@link #meshPart}. Must not be null. */
43 /** Construct a new NodePart with null values. At least the {@link #meshPart} and {@link #material} member must be set before
48 /** Construct a new NodePart referencing the provided {@link MeshPart} and {@link Material}.
49 * @param meshPart The MeshPart to reference.
51 public NodePart (final MeshPart meshPart, final Material material) {
    [all...]
Node.java 29 * child nodes. Optionally a node can specify a {@link MeshPart} and a {@link Material} to be applied to the mesh part.
128 final MeshPart meshPart = part.meshPart;
130 meshPart.mesh.extendBoundingBox(out, meshPart.offset, meshPart.size, globalTransform);
132 meshPart.mesh.extendBoundingBox(out, meshPart.offset, meshPart.size);
    [all...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shaders/
MultiPassShader.java 41 renderable.meshPart.render(program, false);
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/batches/
PointSpriteParticleBatch.java 76 if(renderable.meshPart.mesh != null)
77 renderable.meshPart.mesh.dispose();
78 renderable.meshPart.mesh = new Mesh(false, capacity, 0, CPU_ATTRIBUTES);
83 renderable.meshPart.primitiveType = GL20.GL_POINTS;
84 renderable.meshPart.offset = 0;
134 renderable.meshPart.size = bufferedParticlesCount;
135 renderable.meshPart.mesh.setVertices(vertices, 0, bufferedParticlesCount*CPU_VERTEX_SIZE);
136 renderable.meshPart.update();
BillboardParticleBatch.java 166 renderable.meshPart.primitiveType = GL20.GL_TRIANGLES;
167 renderable.meshPart.offset = 0;
170 renderable.meshPart.mesh = new Mesh(false, MAX_VERTICES_PER_MESH, MAX_PARTICLES_PER_MESH*6, currentAttributes);
171 renderable.meshPart.mesh.setIndices(indices);
216 renderable.meshPart.mesh.dispose();
678 renderable.meshPart.size = (addedVertexCount/4)*6;
679 renderable.meshPart.mesh.setVertices(vertices, currentVertexSize *v, currentVertexSize * addedVertexCount);
680 renderable.meshPart.update();
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
HeightMapTest.java 58 ground.meshPart.mesh = field.mesh;
59 ground.meshPart.primitiveType = GL20.GL_TRIANGLES;
60 ground.meshPart.offset = 0;
61 ground.meshPart.size = field.mesh.getNumIndices();
62 ground.meshPart.update();
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
ModelBuilder.java 25 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
130 /** Adds the specified MeshPart to the current Node. The Mesh will be managed by the model and disposed when the model is
133 public void part (final MeshPart meshpart, final Material material) {
135 node.parts.add(new NodePart(meshpart, material));
141 * @return The added MeshPart. */
142 public MeshPart part (final String id, final Mesh mesh, int primitiveType, int offset, int size, final Material material) {
143 final MeshPart meshPart = new MeshPart();
    [all...]
  /external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
btCollisionWorldImporter.cpp 658 btIndexedMesh meshPart;
659 meshPart.m_numTriangles = meshData.m_meshPartsPtr[i].m_numTriangles;
660 meshPart.m_numVertices = meshData.m_meshPartsPtr[i].m_numVertices;
665 meshPart.m_indexType = PHY_INTEGER;
666 meshPart.m_triangleIndexStride = 3*sizeof(int);
667 int* indexArray = (int*)btAlignedAlloc(sizeof(int)*3*meshPart.m_numTriangles,16);
669 for (int j=0;j<3*meshPart.m_numTriangles;j++)
673 meshPart.m_triangleIndexBase = (const unsigned char*)indexArray;
678 meshPart.m_indexType = PHY_SHORT;
679 meshPart.m_triangleIndexStride = sizeof(short int)*3;//sizeof(btShortIntIndexTripletData)
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/
BaseShader.java 193 final VertexAttributes attrs = renderable.meshPart.mesh.getVertexAttributes();
238 if (currentMesh != renderable.meshPart.mesh) {
240 currentMesh = renderable.meshPart.mesh;
241 currentMesh.bind(program, getAttributeLocations(renderable.meshPart.mesh.getVertexAttributes()));
243 renderable.meshPart.render(program, false);
  /external/libgdx/extensions/gdx-bullet/jni/src/extras/Serialize/BulletWorldImporter/
btWorldImporter.cpp     [all...]

Completed in 455 milliseconds