HomeSort by relevance Sort by last modified time
    Searched refs:meshPart (Results 1 - 25 of 30) sorted by null

1 2

  /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/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/
ModelCache.java 25 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
151 final VertexAttributes va0 = arg0.meshPart.mesh.getVertexAttributes();
152 final VertexAttributes va1 = arg1.meshPart.mesh.getVertexAttributes();
157 return arg0.meshPart.primitiveType - arg1.meshPart.primitiveType;
172 private FlushablePool<MeshPart> meshPartPool = new FlushablePool<MeshPart>() {
174 protected MeshPart newObject () {
175 return new MeshPart();
234 result.meshPart.mesh = null
    [all...]
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...]
ModelBatch.java 56 renderable.meshPart.set("", null, 0, 0, 0);
227 renderable.meshPart.mesh.setAutoBind(false);
  /external/libgdx/extensions/gdx-bullet/jni/swig/collision/
btTriangleIndexVertexArray.i 35 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
54 /** Create or reuse a btIndexedMesh instance based on the specified {@link MeshPart}.
56 public static btIndexedMesh obtain(final MeshPart meshPart) {
57 if (meshPart == null)
58 throw new GdxRuntimeException("meshPart cannot be null");
60 btIndexedMesh result = getInstance(meshPart);
62 result = new btIndexedMesh(meshPart);
87 /** The tag to identify this btIndexedMesh, may be null. Typically this is the {@link Mesh} or {@link MeshPart} used to create or set
99 /** Construct a new btIndexedMesh based on the supplied {@link 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/extensions/gdx-bullet/jni/swig-src/collision/com/badlogic/gdx/physics/bullet/collision/
btIndexedMesh.java 16 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
76 /** Create or reuse a btIndexedMesh instance based on the specified {@link MeshPart}.
78 public static btIndexedMesh obtain(final MeshPart meshPart) {
79 if (meshPart == null)
80 throw new GdxRuntimeException("meshPart cannot be null");
82 btIndexedMesh result = getInstance(meshPart);
84 result = new btIndexedMesh(meshPart);
109 /** The tag to identify this btIndexedMesh, may be null. Typically this is the {@link Mesh} or {@link MeshPart} used to create or set
121 /** Construct a new btIndexedMesh based on the supplied {@link MeshPart}
    [all...]
btTriangleIndexVertexArray.java 19 import com.badlogic.gdx.graphics.g3d.model.MeshPart;
98 /** Create or reuse a btTriangleIndexVertexArray instance based on the specified {@link MeshPart} array.
100 public static <T extends MeshPart> btTriangleIndexVertexArray obtain(final Array<T> meshParts) {
112 public btTriangleIndexVertexArray(final MeshPart meshPart) {
114 addMeshPart(meshPart);
117 public <T extends MeshPart> btTriangleIndexVertexArray(final Iterable<T> meshParts) {
132 /** Add a {@link MeshPart} instance to this btTriangleIndexVertexArray.
135 public btTriangleIndexVertexArray addMeshPart(final MeshPart meshPart) {
    [all...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/utils/
AABBNearFarAnalyzer.java 50 renderable.meshPart.set("", null, 0, 0, 0);
78 tmpV.add(renderable.meshPart.center);
80 if (camera.frustum.sphereInFrustum(tmpV, renderable.meshPart.radius)) {
81 bb1.ext(tmpV, renderable.meshPart.radius);
  /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/
ShapeCache.java 88 renderable.meshPart.mesh = mesh;
89 renderable.meshPart.primitiveType = primitiveType;
105 builder.part(id, primitiveType, renderable.meshPart);
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/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/gdx/src/com/badlogic/gdx/graphics/g3d/utils/shapebuilders/
RenderableShapeBuilder.java 47 renderable.meshPart.set("", null, 0, 0, 0);
97 Mesh mesh = renderable.meshPart.mesh;
126 mesh.getIndices(renderable.meshPart.offset, renderable.meshPart.size, indices, 0);
134 verticesOffset = renderable.meshPart.offset;
135 verticesQuantity = renderable.meshPart.size;
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/
DepthShader.java 96 final int n = renderable.meshPart.mesh.getVertexAttributes().size();
98 final VertexAttribute attr = renderable.meshPart.mesh.getVertexAttributes().get(i);
127 final boolean skinned = ((renderable.meshPart.mesh.getVertexAttributes().getMask() & Usage.BoneWeight) == Usage.BoneWeight);
131 final int n = renderable.meshPart.mesh.getVertexAttributes().size();
133 final VertexAttribute attr = renderable.meshPart.mesh.getVertexAttributes().get(i);
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...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/voxel/
VoxelWorld.java 196 renderable.meshPart.mesh = mesh;
197 renderable.meshPart.offset = 0;
198 renderable.meshPart.size = numVertices[i];
199 renderable.meshPart.primitiveType = GL20.GL_TRIANGLES;
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/loader/
G3dModelLoader.java 98 for (JsonValue meshPart = meshParts.child; meshPart != null; meshPart = meshPart.next) {
100 String partId = meshPart.getString("id", null);
111 String type = meshPart.getString("type", null);
117 jsonPart.indices = meshPart.require("indices").asShortArray();
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
ParticleShader.java 182 vertexMask = renderable.meshPart.mesh.getVertexAttributes().getMask();
230 (vertexMask == renderable.meshPart.mesh.getVertexAttributes().getMask());

Completed in 1131 milliseconds

1 2