import com.badlogic.gdx.math.Matrix3;\r
import com.badlogic.gdx.math.Matrix4;\r
\r
-public class btMeshPartData {\r
- private long swigCPtr;\r
- protected boolean swigCMemOwn;\r
-\r
- protected btMeshPartData(long cPtr, boolean cMemoryOwn) {\r
- swigCMemOwn = cMemoryOwn;\r
- swigCPtr = cPtr;\r
- }\r
-\r
- public static long getCPtr(btMeshPartData obj) {\r
- return (obj == null) ? 0 : obj.swigCPtr;\r
- }\r
-\r
- protected void finalize() {\r
- delete();\r
- }\r
-\r
- public synchronized void delete() {\r
- if (swigCPtr != 0) {\r
- if (swigCMemOwn) {\r
- swigCMemOwn = false;\r
- gdxBulletJNI.delete_btMeshPartData(swigCPtr);\r
- }\r
- swigCPtr = 0;\r
- }\r
- }\r
-\r
- public void setM_vertices3f(btVector3FloatData value) {\r
- gdxBulletJNI.btMeshPartData_m_vertices3f_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);\r
- }\r
-\r
- public btVector3FloatData getM_vertices3f() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_vertices3f_get(swigCPtr, this);\r
+public class btMeshPartData extends BulletBase {\r
+ private long swigCPtr;\r
+ \r
+ protected btMeshPartData(final String className, long cPtr, boolean cMemoryOwn) {\r
+ super(className, cPtr, cMemoryOwn);\r
+ swigCPtr = cPtr;\r
+ }\r
+ \r
+ protected btMeshPartData(long cPtr, boolean cMemoryOwn) {\r
+ this("btMeshPartData", cPtr, cMemoryOwn);\r
+ construct();\r
+ }\r
+ \r
+ public static long getCPtr(btMeshPartData obj) {\r
+ return (obj == null) ? 0 : obj.swigCPtr;\r
+ }\r
+\r
+ @Override\r
+ protected void finalize() throws Throwable {\r
+ if (!destroyed)\r
+ destroy();\r
+ super.finalize();\r
+ }\r
+\r
+ @Override protected synchronized void delete() {\r
+ if (swigCPtr != 0) {\r
+ if (swigCMemOwn) {\r
+ swigCMemOwn = false;\r
+ gdxBulletJNI.delete_btMeshPartData(swigCPtr);\r
+ }\r
+ swigCPtr = 0;\r
+ }\r
+ super.delete();\r
+ }\r
+\r
+ public void setVertices3f(btVector3FloatData value) {\r
+ gdxBulletJNI.btMeshPartData_vertices3f_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);\r
+ }\r
+\r
+ public btVector3FloatData getVertices3f() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_vertices3f_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);\r
}\r
\r
- public void setM_vertices3d(btVector3DoubleData value) {\r
- gdxBulletJNI.btMeshPartData_m_vertices3d_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value);\r
+ public void setVertices3d(btVector3DoubleData value) {\r
+ gdxBulletJNI.btMeshPartData_vertices3d_set(swigCPtr, this, btVector3DoubleData.getCPtr(value), value);\r
}\r
\r
- public btVector3DoubleData getM_vertices3d() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_vertices3d_get(swigCPtr, this);\r
+ public btVector3DoubleData getVertices3d() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_vertices3d_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btVector3DoubleData(cPtr, false);\r
}\r
\r
- public void setM_indices32(btIntIndexData value) {\r
- gdxBulletJNI.btMeshPartData_m_indices32_set(swigCPtr, this, btIntIndexData.getCPtr(value), value);\r
+ public void setIndices32(btIntIndexData value) {\r
+ gdxBulletJNI.btMeshPartData_indices32_set(swigCPtr, this, btIntIndexData.getCPtr(value), value);\r
}\r
\r
- public btIntIndexData getM_indices32() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_indices32_get(swigCPtr, this);\r
+ public btIntIndexData getIndices32() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_indices32_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btIntIndexData(cPtr, false);\r
}\r
\r
- public void setM_3indices16(btShortIntIndexTripletData value) {\r
- gdxBulletJNI.btMeshPartData_m_3indices16_set(swigCPtr, this, btShortIntIndexTripletData.getCPtr(value), value);\r
+ public void set3indices16(btShortIntIndexTripletData value) {\r
+ gdxBulletJNI.btMeshPartData_3indices16_set(swigCPtr, this, btShortIntIndexTripletData.getCPtr(value), value);\r
}\r
\r
- public btShortIntIndexTripletData getM_3indices16() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_3indices16_get(swigCPtr, this);\r
+ public btShortIntIndexTripletData get3indices16() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_3indices16_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btShortIntIndexTripletData(cPtr, false);\r
}\r
\r
- public void setM_3indices8(btCharIndexTripletData value) {\r
- gdxBulletJNI.btMeshPartData_m_3indices8_set(swigCPtr, this, btCharIndexTripletData.getCPtr(value), value);\r
+ public void set3indices8(btCharIndexTripletData value) {\r
+ gdxBulletJNI.btMeshPartData_3indices8_set(swigCPtr, this, btCharIndexTripletData.getCPtr(value), value);\r
}\r
\r
- public btCharIndexTripletData getM_3indices8() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_3indices8_get(swigCPtr, this);\r
+ public btCharIndexTripletData get3indices8() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_3indices8_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btCharIndexTripletData(cPtr, false);\r
}\r
\r
- public void setM_indices16(btShortIntIndexData value) {\r
- gdxBulletJNI.btMeshPartData_m_indices16_set(swigCPtr, this, btShortIntIndexData.getCPtr(value), value);\r
+ public void setIndices16(btShortIntIndexData value) {\r
+ gdxBulletJNI.btMeshPartData_indices16_set(swigCPtr, this, btShortIntIndexData.getCPtr(value), value);\r
}\r
\r
- public btShortIntIndexData getM_indices16() {\r
- long cPtr = gdxBulletJNI.btMeshPartData_m_indices16_get(swigCPtr, this);\r
+ public btShortIntIndexData getIndices16() {\r
+ long cPtr = gdxBulletJNI.btMeshPartData_indices16_get(swigCPtr, this);\r
return (cPtr == 0) ? null : new btShortIntIndexData(cPtr, false);\r
}\r
\r
- public void setM_numTriangles(int value) {\r
- gdxBulletJNI.btMeshPartData_m_numTriangles_set(swigCPtr, this, value);\r
+ public void setNumTriangles(int value) {\r
+ gdxBulletJNI.btMeshPartData_numTriangles_set(swigCPtr, this, value);\r
}\r
\r
- public int getM_numTriangles() {\r
- return gdxBulletJNI.btMeshPartData_m_numTriangles_get(swigCPtr, this);\r
+ public int getNumTriangles() {\r
+ return gdxBulletJNI.btMeshPartData_numTriangles_get(swigCPtr, this);\r
}\r
\r
- public void setM_numVertices(int value) {\r
- gdxBulletJNI.btMeshPartData_m_numVertices_set(swigCPtr, this, value);\r
+ public void setNumVertices(int value) {\r
+ gdxBulletJNI.btMeshPartData_numVertices_set(swigCPtr, this, value);\r
}\r
\r
- public int getM_numVertices() {\r
- return gdxBulletJNI.btMeshPartData_m_numVertices_get(swigCPtr, this);\r
+ public int getNumVertices() {\r
+ return gdxBulletJNI.btMeshPartData_numVertices_get(swigCPtr, this);\r
}\r
\r
public btMeshPartData() {\r