OSDN Git Service

Merge pull request #141 from xoppa/bullet2
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btIndexedMesh.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.8
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package com.badlogic.gdx.physics.bullet;
10
11 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
14 import com.badlogic.gdx.math.Matrix4;
15
16 public class btIndexedMesh {
17   private long swigCPtr;
18   protected boolean swigCMemOwn;
19
20   protected btIndexedMesh(long cPtr, boolean cMemoryOwn) {
21     swigCMemOwn = cMemoryOwn;
22     swigCPtr = cPtr;
23   }
24
25   public static long getCPtr(btIndexedMesh obj) {
26     return (obj == null) ? 0 : obj.swigCPtr;
27   }
28
29   protected void finalize() {
30     delete();
31   }
32
33   public synchronized void delete() {
34     if (swigCPtr != 0) {
35       if (swigCMemOwn) {
36         swigCMemOwn = false;
37         gdxBulletJNI.delete_btIndexedMesh(swigCPtr);
38       }
39       swigCPtr = 0;
40     }
41   }
42
43   public void setM_numTriangles(int value) {
44     gdxBulletJNI.btIndexedMesh_m_numTriangles_set(swigCPtr, this, value);
45   }
46
47   public int getM_numTriangles() {
48     return gdxBulletJNI.btIndexedMesh_m_numTriangles_get(swigCPtr, this);
49   }
50
51   public void setM_triangleIndexBase(SWIGTYPE_p_unsigned_char value) {
52     gdxBulletJNI.btIndexedMesh_m_triangleIndexBase_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
53   }
54
55   public SWIGTYPE_p_unsigned_char getM_triangleIndexBase() {
56     long cPtr = gdxBulletJNI.btIndexedMesh_m_triangleIndexBase_get(swigCPtr, this);
57     return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
58   }
59
60   public void setM_triangleIndexStride(int value) {
61     gdxBulletJNI.btIndexedMesh_m_triangleIndexStride_set(swigCPtr, this, value);
62   }
63
64   public int getM_triangleIndexStride() {
65     return gdxBulletJNI.btIndexedMesh_m_triangleIndexStride_get(swigCPtr, this);
66   }
67
68   public void setM_numVertices(int value) {
69     gdxBulletJNI.btIndexedMesh_m_numVertices_set(swigCPtr, this, value);
70   }
71
72   public int getM_numVertices() {
73     return gdxBulletJNI.btIndexedMesh_m_numVertices_get(swigCPtr, this);
74   }
75
76   public void setM_vertexBase(SWIGTYPE_p_unsigned_char value) {
77     gdxBulletJNI.btIndexedMesh_m_vertexBase_set(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(value));
78   }
79
80   public SWIGTYPE_p_unsigned_char getM_vertexBase() {
81     long cPtr = gdxBulletJNI.btIndexedMesh_m_vertexBase_get(swigCPtr, this);
82     return (cPtr == 0) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false);
83   }
84
85   public void setM_vertexStride(int value) {
86     gdxBulletJNI.btIndexedMesh_m_vertexStride_set(swigCPtr, this, value);
87   }
88
89   public int getM_vertexStride() {
90     return gdxBulletJNI.btIndexedMesh_m_vertexStride_get(swigCPtr, this);
91   }
92
93   public void setM_indexType(int value) {
94     gdxBulletJNI.btIndexedMesh_m_indexType_set(swigCPtr, this, value);
95   }
96
97   public int getM_indexType() {
98     return gdxBulletJNI.btIndexedMesh_m_indexType_get(swigCPtr, this);
99   }
100
101   public void setM_vertexType(int value) {
102     gdxBulletJNI.btIndexedMesh_m_vertexType_set(swigCPtr, this, value);
103   }
104
105   public int getM_vertexType() {
106     return gdxBulletJNI.btIndexedMesh_m_vertexType_get(swigCPtr, this);
107   }
108
109   public btIndexedMesh() {
110     this(gdxBulletJNI.new_btIndexedMesh(), true);
111   }
112
113   public void setTriangleIndexBase(short[] data, long size) {
114     gdxBulletJNI.btIndexedMesh_setTriangleIndexBase(swigCPtr, this, data, size);
115   }
116
117   public void setVertexBase(float[] data, long size) {
118     gdxBulletJNI.btIndexedMesh_setVertexBase(swigCPtr, this, data, size);
119   }
120
121 }