public Square(){
  ByteBuffer bb=ByteBuffer.allocateDirect(squareCoords.length * 4);
  bb.order(ByteOrder.nativeOrder());
  vertexBuffer=bb.asFloatBuffer();
  vertexBuffer.put(squareCoords);
  vertexBuffer.position(0);
  ByteBuffer dlb=ByteBuffer.allocateDirect(drawOrder.length * 2);
  dlb.order(ByteOrder.nativeOrder());
  drawListBuffer=dlb.asShortBuffer();
  drawListBuffer.put(drawOrder);
  drawListBuffer.position(0);
}

public Square ( ) { ByteBuffer bb = ByteBuffer . allocateDirect ( squareCoords . length * 4 ) ; bb . order ( ByteOrder . nativeOrder ( ) ) ; vertexBuffer = bb . asFloatBuffer ( ) ; vertexBuffer . put ( squareCoords ) ; vertexBuffer . position ( 0 ) ; ByteBuffer dlb = ByteBuffer . allocateDirect ( drawOrder . length * 2 ) ; dlb . order ( ByteOrder . nativeOrder ( ) ) ; drawListBuffer = dlb . asShortBuffer ( ) ; drawListBuffer . put ( drawOrder ) ; drawListBuffer . position ( 0 ) ; }
sets up the drawing object data for use in an opengl es context .
