Code example for IntBuffer

Methods: position, put

0
      // upper right 
      texCoords[6] = FixedPoint.floatToFixedPoint((cropU + cropW) * texelWidth);
      texCoords[7] = FixedPoint.floatToFixedPoint((cropV + cropH) * texelHeight);
       
      mTexCoords = ByteBuffer.allocateDirect(8*4).order(ByteOrder.nativeOrder()).asIntBuffer();
      mTexCoords.put(texCoords);
      mTexCoords.position(0);
       
      mCrop = new int[] { cropU, cropV, cropW, cropH };
    } 
     
    public String getText() {
      return mText;
    } 
     
    public int getColor() { 
      return mColor;
    } 
     
    public int getFontSize() { 
      return mFontSize;