/** Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified * Renderable. The other member of the provided {@link Renderable} remain untouched. Note that the material, mesh and bones * members are referenced, not copied. Any changes made to those objects will be reflected in both the NodePart and Renderable * object. * @param out The Renderable of which to set the members to the values of this NodePart. */ public Renderable setRenderable (final Renderable out) { out.material = material; out.meshPart.set(meshPart); out.bones = bones; return out; }
/** Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified * Renderable. The other member of the provided {@link Renderable} remain untouched. Note that the material, mesh and bones * members are referenced, not copied. Any changes made to those objects will be reflected in both the NodePart and Renderable * object. * @param out The Renderable of which to set the members to the values of this NodePart. */ public Renderable setRenderable (final Renderable out) { out.material = material; out.meshPart.set(meshPart); out.bones = bones; return out; }
/** Construct a new MeshPart and set all its values. * @param id The id of the new part, may be null. * @param mesh The mesh which holds all vertices and (optional) indices of this part. * @param offset The offset within the mesh to this part. * @param size The size (in total number of vertices) of the part. * @param type The primitive type of the part (e.g. GL_TRIANGLES, GL_LINE_STRIP, etc.). */ public MeshPart (final String id, final Mesh mesh, final int offset, final int size, final int type) { set(id, mesh, offset, size, type); }
/** Construct a new MeshPart which is an exact copy of the provided MeshPart. * @param copyFrom The MeshPart to copy. */ public MeshPart (final MeshPart copyFrom) { set(copyFrom); }
/** Construct a new MeshPart which is an exact copy of the provided MeshPart. * @param copyFrom The MeshPart to copy. */ public MeshPart (final MeshPart copyFrom) { set(copyFrom); }
/** Construct a new MeshPart and set all its values. * @param id The id of the new part, may be null. * @param mesh The mesh which holds all vertices and (optional) indices of this part. * @param offset The offset within the mesh to this part. * @param size The size (in total number of vertices) of the part. * @param type The primitive type of the part (e.g. GL_TRIANGLES, GL_LINE_STRIP, etc.). */ public MeshPart (final String id, final Mesh mesh, final int offset, final int size, final int type) { set(id, mesh, offset, size, type); }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
public Renderable set (Renderable renderable) { worldTransform.set(renderable.worldTransform); material = renderable.material; meshPart.set(renderable.meshPart); bones = renderable.bones; environment = renderable.environment; shader = renderable.shader; userData = renderable.userData; return this; } }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
public Renderable set (Renderable renderable) { worldTransform.set(renderable.worldTransform); material = renderable.material; meshPart.set(renderable.meshPart); bones = renderable.bones; environment = renderable.environment; shader = renderable.shader; userData = renderable.userData; return this; } }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; obtained.add(renderable); return renderable; }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; obtained.add(renderable); return renderable; }
/** Construct a new MeshPart and set all its values. * @param id The id of the new part, may be null. * @param mesh The mesh which holds all vertices and (optional) indices of this part. * @param offset The offset within the mesh to this part. * @param size The size (in total number of vertices) of the part. * @param type The primitive type of the part (e.g. GL_TRIANGLES, GL_LINE_STRIP, etc.). */ public MeshPart (final String id, final Mesh mesh, final int offset, final int size, final int type) { set(id, mesh, offset, size, type); }
/** Construct a new MeshPart which is an exact copy of the provided MeshPart. * @param copyFrom The MeshPart to copy. */ public MeshPart (final MeshPart copyFrom) { set(copyFrom); }
/** Convenience method to set the material, mesh, meshPartOffset, meshPartSize, primitiveType and bones members of the specified * Renderable. The other member of the provided {@link Renderable} remain untouched. Note that the material, mesh and bones * members are referenced, not copied. Any changes made to those objects will be reflected in both the NodePart and Renderable * object. * @param out The Renderable of which to set the members to the values of this NodePart. */ public Renderable setRenderable (final Renderable out) { out.material = material; out.meshPart.set(meshPart); out.bones = bones; return out; }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
@Override public Renderable obtain () { Renderable renderable = super.obtain(); renderable.environment = null; renderable.material = null; renderable.meshPart.set("", null, 0, 0, 0); renderable.shader = null; renderable.userData = null; return renderable; } }
public Renderable set (Renderable renderable) { worldTransform.set(renderable.worldTransform); material = renderable.material; meshPart.set(renderable.meshPart); bones = renderable.bones; environment = renderable.environment; shader = renderable.shader; userData = renderable.userData; return this; } }