Codota Logo
SkeletonWire.writeConnections
Code IndexAdd Codota to your IDE (free)

How to use
writeConnections
method
in
com.jme3.scene.debug.SkeletonWire

Best Java code snippets using com.jme3.scene.debug.SkeletonWire.writeConnections (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

  /**
   * The method writes the indexes for the connection vertices. Used in non-length mode.
   * @param indexBuf
   *            the index buffer
   * @param bone
   *            the bone
   */
  private void writeConnections(ShortBuffer indexBuf, Bone bone) {
    for (Bone child : bone.getChildren()) {
      // write myself
      indexBuf.put((short) skeleton.getBoneIndex(bone));
      // write the child
      indexBuf.put((short) skeleton.getBoneIndex(child));

      this.writeConnections(indexBuf, child);
    }
  }
}
origin: jMonkeyEngine/jmonkeyengine

this.writeConnections(sib, bone);
origin: info.projectkyoto/mms-engine

private void writeConnections(ShortBuffer indexBuf, Bone bone){
  for (Bone child : bone.getChildren()){
    // write myself
    indexBuf.put( (short) skeleton.getBoneIndex(bone) );
    // write the child
    indexBuf.put( (short) skeleton.getBoneIndex(child) );
    writeConnections(indexBuf, child);
  }
}
origin: org.jmonkeyengine/jme3-core

  /**
   * The method writes the indexes for the connection vertices. Used in non-length mode.
   * @param indexBuf
   *            the index buffer
   * @param bone
   *            the bone
   */
  private void writeConnections(ShortBuffer indexBuf, Bone bone) {
    for (Bone child : bone.getChildren()) {
      // write myself
      indexBuf.put((short) skeleton.getBoneIndex(bone));
      // write the child
      indexBuf.put((short) skeleton.getBoneIndex(child));

      this.writeConnections(indexBuf, child);
    }
  }
}
origin: org.jmonkeyengine/jme3-core

this.writeConnections(sib, bone);
origin: info.projectkyoto/mms-engine

public SkeletonWire(Skeleton skeleton){
  this.skeleton = skeleton;
  for (Bone bone : skeleton.getRoots())
    countConnections(bone);
  setMode(Mode.Lines);
  VertexBuffer pb = new VertexBuffer(Type.Position);
  FloatBuffer fpb = BufferUtils.createFloatBuffer(skeleton.getBoneCount() * 3);
  pb.setupData(Usage.Stream, 3, Format.Float, fpb);
  setBuffer(pb);
  VertexBuffer ib = new VertexBuffer(Type.Index);
  ShortBuffer sib = BufferUtils.createShortBuffer(numConnections * 2);
  ib.setupData(Usage.Static, 2, Format.UnsignedShort, sib);
  setBuffer(ib);
  for (Bone bone : skeleton.getRoots())
    writeConnections(sib, bone);
  sib.flip();
  updateCounts();
}
com.jme3.scene.debugSkeletonWirewriteConnections

Javadoc

The method writes the indexes for the connection vertices. Used in non-length mode.

Popular methods of SkeletonWire

  • <init>
    Creates a wire with bone lengths data. If the data is supplied then the wires will show each full bo
  • countConnections
    Th method couns the connections between bones.
  • getBuffer
  • getFloatBuffer
  • setBuffer
  • setMode
  • updateBound
  • updateCounts
  • updateGeometry
    The method updates the geometry according to the poitions of the bones.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now