Home | History | Annotate | Download | only in collision

Lines Matching refs:mesh

32 import com.badlogic.gdx.graphics.Mesh;
47 final btIndexedMesh mesh = instances.get(i);
48 if (tag.equals(mesh.tag))
49 return mesh;
55 * Use {@link #release()} to release the mesh when it's no longer needed. */
70 * Use {@link #release()} to release the mesh when it's no longer needed. */
87 /** The tag to identify this btIndexedMesh, may be null. Typically this is the {@link Mesh} or {@link MeshPart} used to create or set
91 /** Construct a new btIndexedMesh based on the supplied {@link Mesh}
92 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
94 public btIndexedMesh(final Mesh mesh) {
96 set(mesh);
100 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
107 /** Construct a new btIndexedMesh based on the supplied {@link Mesh}
108 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
110 public btIndexedMesh(final Mesh mesh, int offset, int count) {
112 set(mesh, offset, count);
124 /** Convenience method to set this btIndexedMesh to the specified {@link Mesh}
125 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
127 public void set(final Mesh mesh) {
128 set(mesh, mesh, 0, mesh.getNumIndices());
131 /** Convenience method to set this btIndexedMesh to the specified {@link Mesh}
132 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
134 public void set(final Object tag, final Mesh mesh) {
135 set(tag, mesh, 0, mesh.getNumIndices());
139 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
143 throw new com.badlogic.gdx.utils.GdxRuntimeException("Mesh must be indexed and triangulated");
144 set(meshPart, meshPart.mesh, meshPart.offset, meshPart.size);
147 /** Convenience method to set this btIndexedMesh to the specified {@link Mesh}
148 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
150 public void set(final Mesh mesh, int offset, int count) {
151 set(null, mesh, offset, count);
154 /** Convenience method to set this btIndexedMesh to the specified {@link Mesh}
155 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
157 public void set(final Object tag, final Mesh mesh, int offset, int count) {
159 throw new com.badlogic.gdx.utils.GdxRuntimeException("Mesh must be indexed and triangulated");
161 VertexAttribute posAttr = mesh.getVertexAttribute(Usage.Position);
164 throw new com.badlogic.gdx.utils.GdxRuntimeException("Mesh doesn't have a position attribute");
166 set(tag, mesh.getVerticesBuffer(), mesh.getVertexSize(), mesh.getNumVertices(), posAttr.offset, mesh.getIndicesBuffer(), offset, count);
199 import com.badlogic.gdx.graphics.Mesh;
214 for (final btIndexedMesh mesh : array.meshes) {
216 final Object tag = mesh.tag;
240 * Use {@link #release()} to release the mesh when it's no longer needed. */
274 * The specified mesh must be indexed and triangulated and must outlive this btTriangleIndexVertexArray.
277 btIndexedMesh mesh = btIndexedMesh.obtain(meshPart);
278 addIndexedMesh(mesh, PHY_ScalarType.PHY_SHORT);
279 mesh.release();
311 public btTriangleIndexVertexArray addIndexedMesh(final btIndexedMesh mesh, int indexType) {
312 mesh.obtain();
313 internalAddIndexedMesh(mesh, indexType);
314 meshes.add(mesh);
319 public btTriangleIndexVertexArray addIndexedMesh(final btIndexedMesh mesh) {
320 return addIndexedMesh(mesh, PHY_ScalarType.PHY_SHORT);
325 for (final btIndexedMesh mesh : meshes)
326 mesh.release();