Lines Matching refs:btIndexedMesh
1 %module btIndexedMesh
7 %extend btIndexedMesh {
29 %typemap(javaimports) btIndexedMesh %{
42 %typemap(javacode) btIndexedMesh %{
43 protected final static Array<btIndexedMesh> instances = new Array<btIndexedMesh>();
44 protected static btIndexedMesh getInstance(final Object tag) {
47 final btIndexedMesh mesh = instances.get(i);
54 /** Create or reuse a btIndexedMesh instance based on the specified {@link MeshPart}.
56 public static btIndexedMesh obtain(final MeshPart meshPart) {
60 btIndexedMesh result = getInstance(meshPart);
62 result = new btIndexedMesh(meshPart);
69 /** Create or reuse a btIndexedMesh instance based on the specified tag.
71 public static btIndexedMesh obtain(final Object tag,
77 btIndexedMesh result = getInstance(tag);
79 result = new btIndexedMesh(vertices, sizeInBytesOfEachVertex, vertexCount, positionOffsetInBytes, indices, indexOffset, indexCount);
87 /** The tag to identify this btIndexedMesh, may be null. Typically this is the {@link Mesh} or {@link MeshPart} used to create or set
88 * this btIndexedMesh. Use by the static obtain(...) methods to avoid creating duplicate instances. */
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) {
99 /** Construct a new btIndexedMesh based on the supplied {@link MeshPart}
100 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
102 public btIndexedMesh(final MeshPart meshPart) {
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) {
115 /** Construct a new btIndexedMesh based on the supplied vertex and index data.
116 * The specified data must be indexed and triangulated and must outlive this btIndexedMesh.
118 public btIndexedMesh(final FloatBuffer vertices, int sizeInBytesOfEachVertex, int vertexCount, int positionOffsetInBytes,
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.
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.
138 /** Convenience method to set this btIndexedMesh to the specified {@link MeshPart}
139 * The specified mesh must be indexed and triangulated and must outlive this btIndexedMesh.
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.
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.
169 /** Convenience method to set this btIndexedMesh to the specified vertex and index data.
170 * The specified data must be indexed and triangulated and must outlive this btIndexedMesh. */
176 /** Convenience method to set this btIndexedMesh to the specified vertex and index data.
177 * The specified data must be indexed and triangulated and must outlive this btIndexedMesh. */
214 for (final btIndexedMesh mesh : array.meshes) {
251 protected final Array<btIndexedMesh> meshes = new Array<btIndexedMesh>(1);
268 /** Return the {@link btIndexedMesh} at the specified index. */
269 public btIndexedMesh getIndexedMesh(int index) {
277 btIndexedMesh mesh = btIndexedMesh.obtain(meshPart);
310 /** Add a {@link btIndexedMesh} to this array */
311 public btTriangleIndexVertexArray addIndexedMesh(final btIndexedMesh mesh, int indexType) {
318 /** Add a {@link btIndexedMesh} to this array */
319 public btTriangleIndexVertexArray addIndexedMesh(final btIndexedMesh mesh) {
325 for (final btIndexedMesh mesh : meshes)