//绘制四方体
[附]构建顶点数组:
int one = 0x10000; // 四棱锥顶点数组: private IntBuffer triggerBuffer = IntBuffer.wrap(new int[]{ 0,one,0, -one,-one,0, one,-one,one, 0,one,0, one,-one,one, one,-one,-one, 0,one,0, one,-one,-one, -one,-one,-one, 0,one,0, -one,-one,-one, -one,-one,one }); // 四方体顶点数组: private IntBuffer quaterBuffer = IntBuffer.wrap(new int[]{ one,one,-one, -one,one,-one, one,one,one, -one,one,one, one,-one,one, -one,-one,one, one,-one,-one, -one,-one,-one, one,one,one, -one,one,one, one,-one,one, -one,-one,one, one,-one,-one, -one,-one,-one, one,one,-one, -one,one,-one, -one,one,one, -one,one,-one, -one,-one,one, -one,-one,-one, one, one, -one, one, one, one, one, -one, -one, one, -one, one, });