Example #1
0
 public void getVertices(
     java.nio.FloatBuffer vertices,
     int vertexSize,
     int posOffset,
     int normalOffset,
     java.nio.ShortBuffer indices,
     int indexOffset,
     int numVertices,
     java.nio.ShortBuffer indexMap,
     int indexMapOffset) {
   assert vertices.isDirect() : "Buffer must be allocated direct.";
   assert indices.isDirect() : "Buffer must be allocated direct.";
   assert indexMap.isDirect() : "Buffer must be allocated direct.";
   {
     SoftbodyJNI.btSoftBody_getVertices__SWIG_2(
         swigCPtr,
         this,
         vertices,
         vertexSize,
         posOffset,
         normalOffset,
         indices,
         indexOffset,
         numVertices,
         indexMap,
         indexMapOffset);
   }
 }
Example #2
0
 private static long SwigConstructbtSoftBody(
     btSoftBodyWorldInfo worldInfo,
     java.nio.FloatBuffer vertices,
     int vertexSize,
     int posOffset,
     int normalOffset,
     java.nio.ShortBuffer indices,
     int indexOffset,
     int numVertices,
     java.nio.ShortBuffer indexMap,
     int indexMapOffset) {
   assert vertices.isDirect() : "Buffer must be allocated direct.";
   assert indices.isDirect() : "Buffer must be allocated direct.";
   assert indexMap.isDirect() : "Buffer must be allocated direct.";
   return SoftbodyJNI.new_btSoftBody__SWIG_2(
       btSoftBodyWorldInfo.getCPtr(worldInfo),
       worldInfo,
       vertices,
       vertexSize,
       posOffset,
       normalOffset,
       indices,
       indexOffset,
       numVertices,
       indexMap,
       indexMapOffset);
 }
Example #3
0
 public void getIndices(java.nio.ShortBuffer buffer, int triangleCount) {
   assert buffer.isDirect() : "Buffer must be allocated direct.";
   {
     SoftbodyJNI.btSoftBody_getIndices(swigCPtr, this, buffer, triangleCount);
   }
 }